From 4590a89b32b62c75fca7ced96c282c7793b8885c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Oct 2010 17:01:37 -0200 Subject: corrected warnings from different compilers (mostly casts and small details) --- ltablib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ltablib.c') diff --git a/ltablib.c b/ltablib.c index 93cc3442..9aa7d5c9 100644 --- a/ltablib.c +++ b/ltablib.c @@ -1,5 +1,5 @@ /* -** $Id: ltablib.c,v 1.55 2010/03/13 03:57:46 roberto Exp roberto $ +** $Id: ltablib.c,v 1.56 2010/07/02 11:38:13 roberto Exp roberto $ ** Library for Table Manipulation ** See Copyright Notice in lua.h */ @@ -16,7 +16,8 @@ #include "lualib.h" -#define aux_getn(L,n) (luaL_checktype(L, n, LUA_TTABLE), lua_rawlen(L, n)) +#define aux_getn(L,n) \ + (luaL_checktype(L, n, LUA_TTABLE), (int)lua_rawlen(L, n)) static int foreachi (lua_State *L) { -- cgit v1.2.3-55-g6feb