aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-11 12:27:02 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-11 12:27:02 +0000
commit366c1b8bfa701705079ee2c7a786d76de37f4735 (patch)
treedad8ffddd1a9dc14bf3cf457bc1444ee9ad878a7
parenta993ba85cf50932cca8d697e2d45145fb21afafe (diff)
warning fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@156 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--translate-i386.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/translate-i386.c b/translate-i386.c
index 0dd376b816..ffdada7aa1 100644
--- a/translate-i386.c
+++ b/translate-i386.c
@@ -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]);
}