diff -r f1e2d9a7a276 -r f49be7182920 sourcepawn/jit/x86/jit_x86.cpp --- a/sourcepawn/jit/x86/jit_x86.cpp Sun Aug 11 11:31:24 2013 -0700 +++ b/sourcepawn/jit/x86/jit_x86.cpp Sun Aug 11 11:31:55 2013 -0700 @@ -1190,7 +1190,7 @@ if (amount > 0) { // Check if the stack went beyond the stack top - usually a compiler error. - __ cmpl(stk, Operand(info, AMX_INFO_STACKTOP)); + __ cmpl(stk, intptr_t(plugin_->memory + plugin_->mem_size)); __ j(not_below, &error_stack_min_); } else { // Check if the stack is going to collide with the heap. @@ -1970,7 +1970,6 @@ vars.hp = ctx->hp; vars.rval = result; vars.ctx = ctx; - vars.stp = runtime->plugin()->memory + runtime->plugin()->mem_size; vars.cip = fn->GetPCodeAddress(); vars.memory = runtime->plugin()->memory; /* vars.esp will be set in the entry code */