diff options
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) { |
