diff --git a/chameleonic.p8 b/chameleonic.p8 index f93f63f..2398aae 100644 --- a/chameleonic.p8 +++ b/chameleonic.p8 @@ -279,14 +279,12 @@ function kbd:release(i) end function tostring(any) - if type(any)=="table" then - local str = "{ " - for k,v in pairs(any) do - str=str..tostring(k).."->"..tostring(v).." " - end - return str.."}" + if (type(any)!="table") return tostr(any) + local str = "{ " + for k,v in pairs(any) do + str..=tostring(k).."->"..tostring(v).." " end - return tostr(any) + return str.."}" end -->8