1.1 --- a/sourcepawn/jit/x86/jit_x86.cpp Sun Aug 11 11:31:24 2013 -0700
1.2 +++ b/sourcepawn/jit/x86/jit_x86.cpp Sun Aug 11 11:31:55 2013 -0700
1.3 @@ -1190,7 +1190,7 @@
1.4
1.5 if (amount > 0) {
1.6 // Check if the stack went beyond the stack top - usually a compiler error.
1.7 - __ cmpl(stk, Operand(info, AMX_INFO_STACKTOP));
1.8 + __ cmpl(stk, intptr_t(plugin_->memory + plugin_->mem_size));
1.9 __ j(not_below, &error_stack_min_);
1.10 } else {
1.11 // Check if the stack is going to collide with the heap.
1.12 @@ -1970,7 +1970,6 @@
1.13 vars.hp = ctx->hp;
1.14 vars.rval = result;
1.15 vars.ctx = ctx;
1.16 - vars.stp = runtime->plugin()->memory + runtime->plugin()->mem_size;
1.17 vars.cip = fn->GetPCodeAddress();
1.18 vars.memory = runtime->plugin()->memory;
1.19 /* vars.esp will be set in the entry code */