diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-25 17:01:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-25 17:01:37 -0200 |
commit | 4590a89b32b62c75fca7ced96c282c7793b8885c (patch) | |
tree | 99ec05f9ba4ca157cbc8736d0b923d479065bf54 /ltablib.c | |
parent | 1475cb59bf16c6af7ecd937e13da0ca0f451a191 (diff) | |
download | lua-4590a89b32b62c75fca7ced96c282c7793b8885c.tar.gz lua-4590a89b32b62c75fca7ced96c282c7793b8885c.tar.bz2 lua-4590a89b32b62c75fca7ced96c282c7793b8885c.zip |
corrected warnings from different compilers (mostly casts and small
details)
Diffstat (limited to 'ltablib.c')
-rw-r--r-- | ltablib.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltablib.c,v 1.55 2010/03/13 03:57:46 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.56 2010/07/02 11:38:13 roberto Exp roberto $ |
3 | ** Library for Table Manipulation | 3 | ** Library for Table Manipulation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -16,7 +16,8 @@ | |||
16 | #include "lualib.h" | 16 | #include "lualib.h" |
17 | 17 | ||
18 | 18 | ||
19 | #define aux_getn(L,n) (luaL_checktype(L, n, LUA_TTABLE), lua_rawlen(L, n)) | 19 | #define aux_getn(L,n) \ |
20 | (luaL_checktype(L, n, LUA_TTABLE), (int)lua_rawlen(L, n)) | ||
20 | 21 | ||
21 | 22 | ||
22 | static int foreachi (lua_State *L) { | 23 | static int foreachi (lua_State *L) { |