fixed bug in amb284
authorBorja Ferrer <faluco@alliedmods.net>
Sun May 13 21:45:40 2007 +0000 (2007-05-13)
changeset 788555e5e7ed90e
parent 787 52283fe61d42
child 789 61b9fe952a02
fixed bug in amb284
sourcepawn/jit/x86/jit_x86.cpp
     1.1 --- a/sourcepawn/jit/x86/jit_x86.cpp	Sun May 13 18:55:59 2007 +0000
     1.2 +++ b/sourcepawn/jit/x86/jit_x86.cpp	Sun May 13 21:45:40 2007 +0000
     1.3 @@ -1462,6 +1462,9 @@
     1.4  			} else {
     1.5  				IA32_Lea_DispRegImm32(jit, AMX_REG_TMP, AMX_REG_PRI, low_bound);
     1.6  			}
     1.7 +		} else {
     1.8 +			//mov ecx, eax
     1.9 +			IA32_Mov_Reg_Rm(jit, AMX_REG_TMP, AMX_REG_PRI, MOD_REG);
    1.10  		}
    1.11  		cell_t high_bound = abs(cases[0].val - cases[num_cases-1].val);
    1.12  		//cmp ecx, <UPPER BOUND BOUND>