summaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-29 13:01:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-29 13:01:00 -0300
commit3ccbae84d2be8e2978a65bcea15b3fffba7664f5 (patch)
tree5d375f2e0c64840e2849620043aafe9bd17e46d9 /loadlib.c
parent255d59ed5e2743b97626eff57444f44defc39270 (diff)
downloadlua-3ccbae84d2be8e2978a65bcea15b3fffba7664f5.tar.gz
lua-3ccbae84d2be8e2978a65bcea15b3fffba7664f5.tar.bz2
lua-3ccbae84d2be8e2978a65bcea15b3fffba7664f5.zip
added some casts between integral types (to avoid warnings)
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));