diff options
author | Charles Crayne <chuck@thor.crayne.org> | 2007-10-18 21:17:20 -0700 |
---|---|---|
committer | Charles Crayne <chuck@thor.crayne.org> | 2007-10-18 21:17:20 -0700 |
commit | 46b31b0f08f31fa42c692061cd56d65a5feb6bbb (patch) | |
tree | cc85c9ede0bcb580dd7d85246bbcbb27f8066f64 /ndisasm.c | |
parent | 26573020d8618dc929cf27fa549f59298e3f70a2 (diff) | |
download | nasm-46b31b0f08f31fa42c692061cd56d65a5feb6bbb.tar.gz nasm-46b31b0f08f31fa42c692061cd56d65a5feb6bbb.tar.bz2 nasm-46b31b0f08f31fa42c692061cd56d65a5feb6bbb.zip |
Suppress signedness warnings in disassembler
Diffstat (limited to 'ndisasm.c')
-rw-r--r-- | ndisasm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -279,17 +279,17 @@ int main(int argc, char **argv) } while (p > q && (p - q >= INSN_MAX || lenread == 0)) { lendis = - disasm(q, outbuf, sizeof(outbuf), bits, offset, autosync, + disasm((uint8_t *) q, outbuf, sizeof(outbuf), bits, offset, autosync, prefer); if (!lendis || lendis > (p - q) || (uint32_t)lendis > nextsync - offset) - lendis = eatbyte(q, outbuf, sizeof(outbuf)); - output_ins(offset, q, lendis, outbuf); + lendis = eatbyte((uint8_t *) q, outbuf, sizeof(outbuf)); + output_ins(offset, (uint8_t *) q, lendis, outbuf); q += lendis; offset += lendis; } if (q >= buffer + INSN_MAX) { - uint8_t *r = buffer, *s = q; + uint8_t *r = (uint8_t *) buffer, *s = (uint8_t *) q; int count = p - q; while (count--) *r++ = *s++; |