From d82bb62834c158a2108ceb412745b046b2990b9f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 20 Sep 2018 10:51:33 +0100 Subject: [PATCH] [Minor] Fix implicit conversion --- lualib/lua_selectors.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index 983f28589..ad18feddf 100644 --- a/lualib/lua_selectors.lua +++ b/lualib/lua_selectors.lua @@ -569,9 +569,7 @@ local function process_selector(task, sel) end local function implicit_tostring(t, ud_or_table) - if t == 'userdata' then - return tostring(ud_or_table),'string' - else + if t == 'table' then -- Table (very special) if ud_or_table.value then return ud_or_table.value,'string' @@ -580,6 +578,8 @@ local function process_selector(task, sel) end return logger.slog("%s", ud_or_table),'string' + else + return tostring(ud_or_table),'string' end end -- 2.39.5