fixed cast

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@182 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2003-05-25 16:42:20 +00:00
parent 85e53d4108
commit 08351fb37a

View File

@ -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) { for (pc = code; pc < (uint8_t *)code + size; pc += count) {
fprintf(out, "0x%08lx: ", (long)pc); fprintf(out, "0x%08lx: ", (long)pc);
count = print_insn((long)pc, &disasm_info); count = print_insn((unsigned long)pc, &disasm_info);
fprintf(out, "\n"); fprintf(out, "\n");
if (count < 0) if (count < 0)
break; break;