From: Stefan Weil Date: Thu, 12 Apr 2012 13:43:09 +0000 (+0200) Subject: target-mips: Fix type cast for w64 (uintptr_t) X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b69e48a84d83162efd4782472572783e99840cf5;p=qemu.git target-mips: Fix type cast for w64 (uintptr_t) This changes nothing for other hosts. Signed-off-by: Stefan Weil --- diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index bca1d70e1a..5627447953 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -2275,7 +2275,7 @@ void helper_pmon (int function) break; case 158: { - unsigned char *fmt = (void *)(unsigned long)env->active_tc.gpr[4]; + unsigned char *fmt = (void *)(uintptr_t)env->active_tc.gpr[4]; printf("%s", fmt); } break;