Manual: errors in lua_toclose are not memory errors

This commit is contained in:
Roberto Ierusalimschy
2024-05-23 09:55:26 -03:00
parent 262dc5729a
commit cbdf4969ec
3 changed files with 6 additions and 3 deletions

View File

@@ -951,7 +951,7 @@ LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {
LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) {
luaL_checkstack(L, nup, "too many upvalues");
for (; l->name != NULL; l++) { /* fill the table with given functions */
if (l->func == NULL) /* place holder? */
if (l->func == NULL) /* placeholder? */
lua_pushboolean(L, 0);
else {
int i;