diff options
Diffstat (limited to 'loadlib.c')
| -rw-r--r-- | loadlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loadlib.c,v 1.114 2014/07/16 13:56:14 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.115 2014/07/28 17:47:53 roberto Exp roberto $ |
| 3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | ** | 5 | ** |
| @@ -293,7 +293,7 @@ static void addtoclib (lua_State *L, const char *path, void *plib) { | |||
| 293 | ** handles in list CLIBS | 293 | ** handles in list CLIBS |
| 294 | */ | 294 | */ |
| 295 | static int gctm (lua_State *L) { | 295 | static int gctm (lua_State *L) { |
| 296 | int n = luaL_len(L, 1); | 296 | lua_Integer n = luaL_len(L, 1); |
| 297 | for (; n >= 1; n--) { /* for each handle, in reverse order */ | 297 | for (; n >= 1; n--) { /* for each handle, in reverse order */ |
| 298 | lua_rawgeti(L, 1, n); /* get handle CLIBS[n] */ | 298 | lua_rawgeti(L, 1, n); /* get handle CLIBS[n] */ |
| 299 | lsys_unloadlib(lua_touserdata(L, -1)); | 299 | lsys_unloadlib(lua_touserdata(L, -1)); |
