mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fixed the return type of luax_objlen.
This commit is contained in:
@@ -645,7 +645,7 @@ extern "C" int luax_typerror(lua_State *L, int narg, const char *tname)
|
||||
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
|
||||
return lua_objlen(L, ndx);
|
||||
|
||||
@@ -397,7 +397,7 @@ extern "C" { // Also called from luasocket
|
||||
/**
|
||||
* 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
|
||||
void luax_register(lua_State *L, const char *name, const luaL_Reg *l);
|
||||
|
||||
Reference in New Issue
Block a user