aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_dispatch.c b/src/lj_dispatch.c
index e5aa495d..ad70cba6 100644
--- a/src/lj_dispatch.c
+++ b/src/lj_dispatch.c
@@ -267,7 +267,7 @@ int luaJIT_setmode(lua_State *L, int idx, int mode)
267 case LUAJIT_MODE_FUNC: 267 case LUAJIT_MODE_FUNC:
268 case LUAJIT_MODE_ALLFUNC: 268 case LUAJIT_MODE_ALLFUNC:
269 case LUAJIT_MODE_ALLSUBFUNC: { 269 case LUAJIT_MODE_ALLSUBFUNC: {
270 cTValue *tv = idx == 0 ? frame_prev(L->base-1) : 270 cTValue *tv = idx == 0 ? frame_prev(L->base-1)-LJ_FR2 :
271 idx > 0 ? L->base + (idx-1) : L->top + idx; 271 idx > 0 ? L->base + (idx-1) : L->top + idx;
272 GCproto *pt; 272 GCproto *pt;
273 if ((idx == 0 || tvisfunc(tv)) && isluafunc(&gcval(tv)->fn)) 273 if ((idx == 0 || tvisfunc(tv)) && isluafunc(&gcval(tv)->fn))