fix(lua): Handling of LUA_TNIL

This commit is contained in:
PRESFIL
2025-06-11 18:34:26 +00:00
committed by Jari Sundell
parent eb45508ab9
commit 09dd1ce9c8
+1 -1
View File
@@ -272,7 +272,7 @@ lua_to_object(lua_State* l_state) {
case LUA_TBOOLEAN:
return torrent::Object(lua_toboolean(l_state, -1));
case LUA_TNIL:
return torrent::Object((torrent::Object::value_type)0);
return torrent::Object(torrent::Object());
case LUA_TTABLE: {
lua_pushnil(l_state);
int status = lua_next(l_state, -2);