update lua 5.4.2

This commit is contained in:
Cloud Wu
2020-11-16 10:51:36 +08:00
parent c7dc8751c7
commit 9eb37198ea
8 changed files with 64 additions and 77 deletions

View File

@@ -191,8 +191,8 @@ int luaD_reallocstack (lua_State *L, int newsize, int raiseerror) {
luaM_error(L);
else return 0; /* do not raise an error */
}
for (lim += EXTRA_STACK; lim < newsize + EXTRA_STACK; lim++)
setnilvalue(s2v(newstack + lim)); /* erase new segment */
for (; lim < newsize; lim++)
setnilvalue(s2v(newstack + lim + EXTRA_STACK)); /* erase new segment */
correctstack(L, L->stack, newstack);
L->stack = newstack;
L->stack_last = L->stack + newsize;