aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldo.c b/ldo.c
index 3b01c8fb..5cd518ef 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.166 2017/11/03 12:12:30 roberto Exp roberto $ 2** $Id: ldo.c,v 2.167 2017/11/03 17:22:54 roberto Exp roberto $
3** Stack and Call structure of Lua 3** Stack and Call structure of Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -253,14 +253,14 @@ void luaD_inctop (lua_State *L) {
253void luaD_hook (lua_State *L, int event, int line) { 253void luaD_hook (lua_State *L, int event, int line) {
254 lua_Hook hook = L->hook; 254 lua_Hook hook = L->hook;
255 if (hook && L->allowhook) { /* make sure there is a hook */ 255 if (hook && L->allowhook) { /* make sure there is a hook */
256 CallInfo *ci = L->ci;
257 ptrdiff_t top = savestack(L, L->top); 256 ptrdiff_t top = savestack(L, L->top);
258 int origframesize = L->func->stkci.framesize; 257 int origframesize = L->func->stkci.framesize;
259 int tmpframesize; /* frame size to run hook */ 258 int tmpframesize; /* frame size to run hook */
260 lua_Debug ar; 259 lua_Debug ar;
261 ar.event = event; 260 ar.event = event;
262 ar.currentline = line; 261 ar.currentline = line;
263 ar.i_ci = ci; 262 ar.i_actf = L->func - L->stack;
263 ar.i_actL = L;
264 luaD_checkstack(L, LUA_MINSTACK); /* ensure minimum stack size */ 264 luaD_checkstack(L, LUA_MINSTACK); /* ensure minimum stack size */
265 tmpframesize = L->top - L->func + LUA_MINSTACK; 265 tmpframesize = L->top - L->func + LUA_MINSTACK;
266 if (tmpframesize > origframesize) /* need to grow frame? */ 266 if (tmpframesize > origframesize) /* need to grow frame? */