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 /lauxlib.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 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.220 2010/08/03 20:21:16 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.221 2010/10/01 18:53:00 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -641,7 +641,7 @@ LUALIB_API int luaL_len (lua_State *L, int idx) { | |||
641 | int l; | 641 | int l; |
642 | int isnum; | 642 | int isnum; |
643 | lua_len(L, idx); | 643 | lua_len(L, idx); |
644 | l = lua_tointegerx(L, -1, &isnum); | 644 | l = (int)lua_tointegerx(L, -1, &isnum); |
645 | if (!isnum) | 645 | if (!isnum) |
646 | luaL_error(L, "object length is not a number"); | 646 | luaL_error(L, "object length is not a number"); |
647 | lua_pop(L, 1); /* remove object */ | 647 | lua_pop(L, 1); /* remove object */ |