Fixed bug found by T(+)rget

This commit is contained in:
David Anderson 2005-08-03 16:33:52 +00:00
parent 4a6a16c627
commit c8fdea6216

View File

@ -1081,7 +1081,9 @@ int AMXAPI amx_InitJIT(AMX *amx, void *reloc_table, void *native_code)
/* JIT rulz! (TM) */
/* MP: added check for correct compilation */
if ((res = asm_runJIT(amx->base, reloc_table, native_code)) != 0) {
//Fixed bug (thanks T(+)rget)
if ((res = asm_runJIT(amx->base, reloc_table, native_code)) == 0)
{
/* update the required memory size (the previous value was a
* conservative estimate, now we know the exact size)
*/