From f3cfd5bf2b11ba207c71344243892645157900b7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 1 Apr 2022 13:55:44 -0300 Subject: Details Comments + manual + identation + asserts about stack limits that were not allowing the use of the full stack --- lvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lvm.c') diff --git a/lvm.c b/lvm.c index f3a5662b..e8c2e962 100644 --- a/lvm.c +++ b/lvm.c @@ -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)) { -- cgit v1.2.3-55-g6feb