diff options
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 */ |