aboutsummaryrefslogtreecommitdiff
path: root/ltablib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-25 17:01:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-25 17:01:37 -0200
commit4590a89b32b62c75fca7ced96c282c7793b8885c (patch)
tree99ec05f9ba4ca157cbc8736d0b923d479065bf54 /ltablib.c
parent1475cb59bf16c6af7ecd937e13da0ca0f451a191 (diff)
downloadlua-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ltablib.c b/ltablib.c
index 93cc3442..9aa7d5c9 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -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
22static int foreachi (lua_State *L) { 23static int foreachi (lua_State *L) {