diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.157 2016/12/13 15:52:21 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.158 2017/05/13 12:57:20 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 | */ |
@@ -164,8 +164,6 @@ static void correctstack (lua_State *L, TValue *oldstack) { | |||
164 | for (ci = L->ci; ci != NULL; ci = ci->previous) { | 164 | for (ci = L->ci; ci != NULL; ci = ci->previous) { |
165 | ci->top = (ci->top - oldstack) + L->stack; | 165 | ci->top = (ci->top - oldstack) + L->stack; |
166 | ci->func = (ci->func - oldstack) + L->stack; | 166 | ci->func = (ci->func - oldstack) + L->stack; |
167 | if (isLua(ci)) | ||
168 | ci->u.l.base = (ci->u.l.base - oldstack) + L->stack; | ||
169 | } | 167 | } |
170 | } | 168 | } |
171 | 169 | ||
@@ -424,7 +422,6 @@ int luaD_precall (lua_State *L, StkId func, int nresults) { | |||
424 | ci = next_ci(L); /* now 'enter' new function */ | 422 | ci = next_ci(L); /* now 'enter' new function */ |
425 | ci->nresults = nresults; | 423 | ci->nresults = nresults; |
426 | ci->func = func; | 424 | ci->func = func; |
427 | ci->u.l.base = func + 1; | ||
428 | L->top = ci->top = func + 1 + fsize; | 425 | L->top = ci->top = func + 1 + fsize; |
429 | lua_assert(ci->top <= L->stack_last); | 426 | lua_assert(ci->top <= L->stack_last); |
430 | ci->u.l.savedpc = p->code; /* starting point */ | 427 | ci->u.l.savedpc = p->code; /* starting point */ |