warning fix
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 11 May 2003 12:27:02 +0000 (12:27 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 11 May 2003 12:27:02 +0000 (12:27 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@156 c046a42c-6fe2-441c-8c8c-71466251a162

translate-i386.c

index 0dd376b8160e86bb78681129362165f10cf35174..ffdada7aa1d0823046f00ba42ec804da25b09372 100644 (file)
@@ -3695,7 +3695,8 @@ static void dump_ops(const uint16_t *opc_buf, const uint32_t *opparam_buf)
     for(;;) {
         c = *opc_ptr++;
         n = op_nb_args[c];
-        fprintf(logfile, "0x%04x: %s", opc_ptr - opc_buf - 1, op_str[c]);
+        fprintf(logfile, "0x%04x: %s", 
+                (int)(opc_ptr - opc_buf - 1), op_str[c]);
         for(i = 0; i < n; i++) {
             fprintf(logfile, " 0x%x", opparam_ptr[i]);
         }