diff options
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.162 2002/03/08 19:11:03 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.163 2002/03/11 12:45:00 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 | */ |
@@ -204,7 +204,7 @@ StkId luaD_precall (lua_State *L, StkId func) { | |||
204 | LClosure *cl; | 204 | LClosure *cl; |
205 | if (++L->ci == L->end_ci) luaD_reallocCI(L, 2*L->size_ci); | 205 | if (++L->ci == L->end_ci) luaD_reallocCI(L, 2*L->size_ci); |
206 | ci = L->ci; | 206 | ci = L->ci; |
207 | ci->base = func+1; | 207 | ci->base = ci->top = func+1; /* pre-init `top' in case of errors */ |
208 | ci->pc = NULL; | 208 | ci->pc = NULL; |
209 | if (ttype(func) != LUA_TFUNCTION) /* `func' is not a function? */ | 209 | if (ttype(func) != LUA_TFUNCTION) /* `func' is not a function? */ |
210 | func = tryfuncTM(L, func); /* check the `function' tag method */ | 210 | func = tryfuncTM(L, func); /* check the `function' tag method */ |