aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 03e756d6..00e95a11 100644
--- a/lapi.c
+++ b/lapi.c
@@ -188,7 +188,7 @@ LUA_API void lua_settop (lua_State *L, int idx) {
188 diff = idx + 1; /* will "subtract" index (as it is negative) */ 188 diff = idx + 1; /* will "subtract" index (as it is negative) */
189 } 189 }
190 if (diff < 0 && hastocloseCfunc(ci->nresults)) 190 if (diff < 0 && hastocloseCfunc(ci->nresults))
191 luaF_close(L, L->top + diff, LUA_OK); 191 luaF_close(L, L->top + diff, CLOSEKTOP);
192 L->top += diff; /* correct top only after closing any upvalue */ 192 L->top += diff; /* correct top only after closing any upvalue */
193 lua_unlock(L); 193 lua_unlock(L);
194} 194}