From b69e48a84d83162efd4782472572783e99840cf5 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 12 Apr 2012 15:43:09 +0200 Subject: [PATCH] target-mips: Fix type cast for w64 (uintptr_t) This changes nothing for other hosts. Signed-off-by: Stefan Weil --- target-mips/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1