aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-04-01 13:55:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-04-01 13:55:44 -0300
commitf3cfd5bf2b11ba207c71344243892645157900b7 (patch)
tree87e26a041ebbd9a91fa5862a3e312f3159b6a132 /lvm.c
parent8426d9b4d4df1da3c5b2d759e509ae1c50a86667 (diff)
downloadlua-f3cfd5bf2b11ba207c71344243892645157900b7.tar.gz
lua-f3cfd5bf2b11ba207c71344243892645157900b7.tar.bz2
lua-f3cfd5bf2b11ba207c71344243892645157900b7.zip
Details
Comments + manual + identation + asserts about stack limits that were not allowing the use of the full stack
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c2
1 files changed, 1 insertions, 1 deletions
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) {
1177 printf("line: %d\n", luaG_getfuncline(cl->p, pcRel(pc, cl->p))); 1177 printf("line: %d\n", luaG_getfuncline(cl->p, pcRel(pc, cl->p)));
1178 #endif 1178 #endif
1179 lua_assert(base == ci->func + 1); 1179 lua_assert(base == ci->func + 1);
1180 lua_assert(base <= L->top && L->top < L->stack_last); 1180 lua_assert(base <= L->top && L->top <= L->stack_last);
1181 /* invalidate top for instructions not expecting it */ 1181 /* invalidate top for instructions not expecting it */
1182 lua_assert(isIT(i) || (cast_void(L->top = base), 1)); 1182 lua_assert(isIT(i) || (cast_void(L->top = base), 1));
1183 vmdispatch (GET_OPCODE(i)) { 1183 vmdispatch (GET_OPCODE(i)) {