mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 19:22:29 +00:00
fix(lua): Handling of LUA_TNIL
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user