aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-05-23 09:55:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-05-23 09:55:26 -0300
commitcbdf4969ec425f1df1ade358425c0bf0bf811d83 (patch)
treede6078c0cc8db2cf3cd70c3ab9cc8777c2db43c9 /lauxlib.c
parent262dc5729a28b2bad0b6413d4eab2290d14395cf (diff)
downloadlua-cbdf4969ec425f1df1ade358425c0bf0bf811d83.tar.gz
lua-cbdf4969ec425f1df1ade358425c0bf0bf811d83.tar.bz2
lua-cbdf4969ec425f1df1ade358425c0bf0bf811d83.zip
Manual: errors in lua_toclose are not memory errors
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 1f786e15..fec834d3 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -951,7 +951,7 @@ LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {
951LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { 951LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) {
952 luaL_checkstack(L, nup, "too many upvalues"); 952 luaL_checkstack(L, nup, "too many upvalues");
953 for (; l->name != NULL; l++) { /* fill the table with given functions */ 953 for (; l->name != NULL; l++) { /* fill the table with given functions */
954 if (l->func == NULL) /* place holder? */ 954 if (l->func == NULL) /* placeholder? */
955 lua_pushboolean(L, 0); 955 lua_pushboolean(L, 0);
956 else { 956 else {
957 int i; 957 int i;