Fixed the return type of luax_objlen.

This commit is contained in:
Alex Szpakowski
2015-06-16 20:57:31 -03:00
parent 3cb777e2b7
commit 073570b7af
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -645,7 +645,7 @@ extern "C" int luax_typerror(lua_State *L, int narg, const char *tname)
return luaL_argerror(L, narg, msg); return luaL_argerror(L, narg, msg);
} }
int luax_objlen(lua_State *L, int ndx) size_t luax_objlen(lua_State *L, int ndx)
{ {
#if LUA_VERSION_NUM == 501 #if LUA_VERSION_NUM == 501
return lua_objlen(L, ndx); return lua_objlen(L, ndx);
+1 -1
View File
@@ -397,7 +397,7 @@ extern "C" { // Also called from luasocket
/** /**
* Calls luax_objlen/lua_rawlen depending on version * Calls luax_objlen/lua_rawlen depending on version
**/ **/
int luax_objlen(lua_State *L, int ndx); size_t luax_objlen(lua_State *L, int ndx);
extern "C" { // Called by enet and luasocket extern "C" { // Called by enet and luasocket
void luax_register(lua_State *L, const char *name, const luaL_Reg *l); void luax_register(lua_State *L, const char *name, const luaL_Reg *l);