aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--disas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disas.c b/disas.c
index b62644886e..4b44e0678b 100644
--- a/disas.c
+++ b/disas.c
@@ -51,7 +51,7 @@ void disas(FILE *out, void *code, unsigned long size, enum disas_type type)
for (pc = code; pc < (uint8_t *)code + size; pc += count) {
fprintf(out, "0x%08lx: ", (long)pc);
- count = print_insn((long)pc, &disasm_info);
+ count = print_insn((unsigned long)pc, &disasm_info);
fprintf(out, "\n");
if (count < 0)
break;