target-mips: Fix type cast for w64 (uintptr_t)
authorStefan Weil <sw@weilnetz.de>
Thu, 12 Apr 2012 13:43:09 +0000 (15:43 +0200)
committerStefan Weil <sw@weilnetz.de>
Sun, 15 Apr 2012 19:25:17 +0000 (21:25 +0200)
This changes nothing for other hosts.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
target-mips/op_helper.c

index bca1d70e1afe60147bc9c929a44edbd74f7048a7..5627447953e2d92f7a82b4e80c849c919b0bc792 100644 (file)
@@ -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;