Comments + manual + identation + asserts about stack limits that were
not allowing the use of the full stack
This commit is contained in:
Roberto Ierusalimschy
2022-04-01 13:55:44 -03:00
parent 8426d9b4d4
commit f3cfd5bf2b
4 changed files with 17 additions and 6 deletions

2
lvm.c
View File

@@ -1177,7 +1177,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
printf("line: %d\n", luaG_getfuncline(cl->p, pcRel(pc, cl->p)));
#endif
lua_assert(base == ci->func + 1);
lua_assert(base <= L->top && L->top < L->stack_last);
lua_assert(base <= L->top && L->top <= L->stack_last);
/* invalidate top for instructions not expecting it */
lua_assert(isIT(i) || (cast_void(L->top = base), 1));
vmdispatch (GET_OPCODE(i)) {