aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-17 15:30:27 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-05-17 15:30:27 -0300
commit3811e23b32d3b43426c869c564bb2a8d1575b64e (patch)
tree02c17bbdad085bb19382d2cb41c33003638aa92f
parent12c764ed1ed37179f123af6ab225ba38e6d405d7 (diff)
downloadlua-3811e23b32d3b43426c869c564bb2a8d1575b64e.tar.gz
lua-3811e23b32d3b43426c869c564bb2a8d1575b64e.tar.bz2
lua-3811e23b32d3b43426c869c564bb2a8d1575b64e.zip
detail (comment)
-rw-r--r--lauxlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lauxlib.c b/lauxlib.c
index c3fa8be6..d196e749 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.209 2010/05/10 15:25:02 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.210 2010/05/12 14:09:20 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -665,7 +665,7 @@ LUALIB_API void luaL_openlib (lua_State *L, const char *libname,
665 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */ 665 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */
666 } 666 }
667 luaL_checkstack(L, nup, "too many upvalues"); 667 luaL_checkstack(L, nup, "too many upvalues");
668 for (; l && l->name; l++) { /* else fill the table with given functions */ 668 for (; l && l->name; l++) { /* fill the table with given functions */
669 int i; 669 int i;
670 for (i = 0; i < nup; i++) /* copy upvalues to the top */ 670 for (i = 0; i < nup; i++) /* copy upvalues to the top */
671 lua_pushvalue(L, -nup); 671 lua_pushvalue(L, -nup);