mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-15 13:46:17 +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:
|
case LUA_TBOOLEAN:
|
||||||
return torrent::Object(lua_toboolean(l_state, -1));
|
return torrent::Object(lua_toboolean(l_state, -1));
|
||||||
case LUA_TNIL:
|
case LUA_TNIL:
|
||||||
return torrent::Object((torrent::Object::value_type)0);
|
return torrent::Object(torrent::Object());
|
||||||
case LUA_TTABLE: {
|
case LUA_TTABLE: {
|
||||||
lua_pushnil(l_state);
|
lua_pushnil(l_state);
|
||||||
int status = lua_next(l_state, -2);
|
int status = lua_next(l_state, -2);
|
||||||
|
|||||||
Reference in New Issue
Block a user