diff options
| -rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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); |
