aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]);
}