aboutsummaryrefslogtreecommitdiff
path: root/src/lj_trace.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_trace.c b/src/lj_trace.c
index f386b95e..7d2ce8f2 100644
--- a/src/lj_trace.c
+++ b/src/lj_trace.c
@@ -830,7 +830,7 @@ int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr)
830 ERRNO_RESTORE 830 ERRNO_RESTORE
831 switch (bc_op(*pc)) { 831 switch (bc_op(*pc)) {
832 case BC_CALLM: case BC_CALLMT: 832 case BC_CALLM: case BC_CALLMT:
833 return (int)((BCReg)(L->top - L->base) - bc_a(*pc) - bc_c(*pc)); 833 return (int)((BCReg)(L->top - L->base) - bc_a(*pc) - bc_c(*pc) + LJ_FR2);
834 case BC_RETM: 834 case BC_RETM:
835 return (int)((BCReg)(L->top - L->base) + 1 - bc_a(*pc) - bc_d(*pc)); 835 return (int)((BCReg)(L->top - L->base) + 1 - bc_a(*pc) - bc_d(*pc));
836 case BC_TSETM: 836 case BC_TSETM: