From b0a32b39c2b69ba54c2d690ff42bae7eb277e628 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sun, 13 May 2007 21:45:40 +0000 Subject: [PATCH] fixed bug in amb284 --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40794 --- sourcepawn/jit/x86/jit_x86.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sourcepawn/jit/x86/jit_x86.cpp b/sourcepawn/jit/x86/jit_x86.cpp index d151e597..76822968 100644 --- a/sourcepawn/jit/x86/jit_x86.cpp +++ b/sourcepawn/jit/x86/jit_x86.cpp @@ -1462,6 +1462,9 @@ inline void WriteOp_Switch(JitWriter *jit) } else { IA32_Lea_DispRegImm32(jit, AMX_REG_TMP, AMX_REG_PRI, low_bound); } + } else { + //mov ecx, eax + IA32_Mov_Reg_Rm(jit, AMX_REG_TMP, AMX_REG_PRI, MOD_REG); } cell_t high_bound = abs(cases[0].val - cases[num_cases-1].val); //cmp ecx,