Commit 366c1b8bfa701705079ee2c7a786d76de37f4735

Authored by bellard
1 parent a993ba85

warning fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@156 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
translate-i386.c
... ... @@ -3695,7 +3695,8 @@ static void dump_ops(const uint16_t *opc_buf, const uint32_t *opparam_buf)
3695 3695 for(;;) {
3696 3696 c = *opc_ptr++;
3697 3697 n = op_nb_args[c];
3698   - fprintf(logfile, "0x%04x: %s", opc_ptr - opc_buf - 1, op_str[c]);
  3698 + fprintf(logfile, "0x%04x: %s",
  3699 + (int)(opc_ptr - opc_buf - 1), op_str[c]);
3699 3700 for(i = 0; i < n; i++) {
3700 3701 fprintf(logfile, " 0x%x", opparam_ptr[i]);
3701 3702 }
... ...