summaryrefslogtreecommitdiff
path: root/src/lj_dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_dispatch.c')
-rw-r--r--src/lj_dispatch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_dispatch.c b/src/lj_dispatch.c
index 5ced161b..491c5aa3 100644
--- a/src/lj_dispatch.c
+++ b/src/lj_dispatch.c
@@ -319,7 +319,8 @@ static void callhook(lua_State *L, int event, BCLine line)
319 lj_trace_abort(g); /* Abort recording on any hook call. */ 319 lj_trace_abort(g); /* Abort recording on any hook call. */
320 ar.event = event; 320 ar.event = event;
321 ar.currentline = line; 321 ar.currentline = line;
322 ar.i_ci = cast_int((L->base-1) - L->stack); /* Top frame, nextframe=NULL. */ 322 /* Top frame, nextframe = NULL. */
323 ar.i_ci = cast_int((L->base-1) - tvref(L->stack));
323 lj_state_checkstack(L, 1+LUA_MINSTACK); 324 lj_state_checkstack(L, 1+LUA_MINSTACK);
324 hook_enter(g); 325 hook_enter(g);
325 hookf(L, &ar); 326 hookf(L, &ar);