Browse Source

Fixed the return type of luax_objlen.

Alex Szpakowski 10 years ago
parent
commit
073570b7af
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/common/runtime.cpp
  2. 1 1
      src/common/runtime.h

+ 1 - 1
src/common/runtime.cpp

@@ -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
src/common/runtime.h

@@ -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);