aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2017-03-21 00:59:38 +0100
committerMike Pall <mike>2017-03-21 00:59:38 +0100
commit024ade796fab2aaac61df9742073eb48b79364be (patch)
treef315ca5bc012a592ede0f0e933dbe506b764f816
parentfa126c5f979a191eaec40a0967795f4512c5fe1b (diff)
downloadluajit-024ade796fab2aaac61df9742073eb48b79364be.tar.gz
luajit-024ade796fab2aaac61df9742073eb48b79364be.tar.bz2
luajit-024ade796fab2aaac61df9742073eb48b79364be.zip
LJ_GC64: Fix BC_CALLM snapshot handling.
-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 80a7f024..d85b47f8 100644
--- a/src/lj_trace.c
+++ b/src/lj_trace.c
@@ -894,7 +894,7 @@ int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr)
894 ERRNO_RESTORE 894 ERRNO_RESTORE
895 switch (bc_op(*pc)) { 895 switch (bc_op(*pc)) {
896 case BC_CALLM: case BC_CALLMT: 896 case BC_CALLM: case BC_CALLMT:
897 return (int)((BCReg)(L->top - L->base) - bc_a(*pc) - bc_c(*pc) + LJ_FR2); 897 return (int)((BCReg)(L->top - L->base) - bc_a(*pc) - bc_c(*pc) - LJ_FR2);
898 case BC_RETM: 898 case BC_RETM:
899 return (int)((BCReg)(L->top - L->base) + 1 - bc_a(*pc) - bc_d(*pc)); 899 return (int)((BCReg)(L->top - L->base) + 1 - bc_a(*pc) - bc_d(*pc));
900 case BC_TSETM: 900 case BC_TSETM: