aboutsummaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-25 16:42:20 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-25 16:42:20 +0000
commit08351fb37ae0abe0d0a025ad67709f1f1fd63d59 (patch)
treeffdee84d01625d1ce19bd8ed72ac33deaae99e66 /disas.c
parent85e53d4108ea1ea0179706ae59e9b573c14dd549 (diff)
fixed cast
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@182 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'disas.c')
-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;