summaryrefslogtreecommitdiff
path: root/ndisasm.c
diff options
context:
space:
mode:
authorCharles Crayne <chuck@thor.crayne.org>2007-10-18 21:17:20 -0700
committerCharles Crayne <chuck@thor.crayne.org>2007-10-18 21:17:20 -0700
commit46b31b0f08f31fa42c692061cd56d65a5feb6bbb (patch)
treecc85c9ede0bcb580dd7d85246bbcbb27f8066f64 /ndisasm.c
parent26573020d8618dc929cf27fa549f59298e3f70a2 (diff)
downloadnasm-46b31b0f08f31fa42c692061cd56d65a5feb6bbb.tar.gz
nasm-46b31b0f08f31fa42c692061cd56d65a5feb6bbb.tar.bz2
nasm-46b31b0f08f31fa42c692061cd56d65a5feb6bbb.zip
Suppress signedness warnings in disassembler
Diffstat (limited to 'ndisasm.c')
-rw-r--r--ndisasm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ndisasm.c b/ndisasm.c
index b0d63c1..7949118 100644
--- a/ndisasm.c
+++ b/ndisasm.c
@@ -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++;