Update VM/src/laux.cpp

This commit is contained in:
Arseny Kapoulkine 2021-11-22 07:34:33 -08:00 committed by GitHub
parent c8752f657e
commit e3cd3e8d08
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,7 +194,7 @@ LUALIB_API int luaL_checkboolean(lua_State* L, int narg)
return lua_toboolean(L, narg);
}
LUALIB_API int luaL_optboolean(lua_State* L, int narg, bool def)
LUALIB_API int luaL_optboolean(lua_State* L, int narg, int def)
{
return luaL_opt(L, luaL_checkboolean, narg, def);
}