Commit 745cacc7b7e36aeb9bcc034f1de3d92eac1efc72

Authored by bellard
1 parent 7aaabde7

removed warning


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3599 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
translate-all.c
@@ -241,7 +241,7 @@ int cpu_restore_state(TranslationBlock *tb, @@ -241,7 +241,7 @@ int cpu_restore_state(TranslationBlock *tb,
241 if (npc == 1) { 241 if (npc == 1) {
242 /* dynamic NPC: already stored */ 242 /* dynamic NPC: already stored */
243 } else if (npc == 2) { 243 } else if (npc == 2) {
244 - target_ulong t2 = (target_ulong)puc; 244 + target_ulong t2 = (target_ulong)(unsigned long)puc;
245 /* jump PC: use T2 and the jump targets of the translation */ 245 /* jump PC: use T2 and the jump targets of the translation */
246 if (t2) 246 if (t2)
247 env->npc = gen_opc_jump_pc[0]; 247 env->npc = gen_opc_jump_pc[0];