diff options
author | Lua Team <team@lua.org> | 2008-01-17 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2008-01-17 12:00:00 +0000 |
commit | b2874e1bcdc4d4a56d8a232a88d5e17c6a9826f5 (patch) | |
tree | c173f097145da6d8df8e8fea09b6ec6bba8c5476 /src/lauxlib.c | |
parent | f3572f5f7e364810f6ac5f99e0eced99c4722418 (diff) | |
download | lua-github-b2874e1bcdc4d4a56d8a232a88d5e17c6a9826f5.tar.gz |
Lua 5.1.3-rc15.1.3-rc1
Diffstat (limited to 'src/lauxlib.c')
-rw-r--r-- | src/lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lauxlib.c b/src/lauxlib.c index 96a6b852..348730f6 100644 --- a/src/lauxlib.c +++ b/src/lauxlib.c @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.c,v 1.159 2006/03/21 19:31:09 roberto Exp $ +** $Id: lauxlib.c,v 1.159.1.2 2008/01/17 14:04:41 roberto Exp $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -244,7 +244,7 @@ LUALIB_API void luaI_openlib (lua_State *L, const char *libname, if (libname) { int size = libsize(l); /* check whether lib already exists */ - luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED", size); + luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED", 1); lua_getfield(L, -1, libname); /* get _LOADED[libname] */ if (!lua_istable(L, -1)) { /* not found? */ lua_pop(L, 1); /* remove previous result */ |