From 745cacc7b7e36aeb9bcc034f1de3d92eac1efc72 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 11 Nov 2007 17:26:45 +0000 Subject: [PATCH] removed warning git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3599 c046a42c-6fe2-441c-8c8c-71466251a162 --- translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate-all.c b/translate-all.c index c42fedf7f6..9f602be36e 100644 --- a/translate-all.c +++ b/translate-all.c @@ -241,7 +241,7 @@ int cpu_restore_state(TranslationBlock *tb, if (npc == 1) { /* dynamic NPC: already stored */ } else if (npc == 2) { - target_ulong t2 = (target_ulong)puc; + target_ulong t2 = (target_ulong)(unsigned long)puc; /* jump PC: use T2 and the jump targets of the translation */ if (t2) env->npc = gen_opc_jump_pc[0];