aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loadlib.c b/loadlib.c
index c85ef405..bf5ca9da 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -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*/
295static int gctm (lua_State *L) { 295static 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));