From b8198f1addbde4da212c46c527b3ed15c3f28614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkki=20Sepp=C3=A4l=C3=A4?= Date: Sun, 26 Oct 2014 10:29:25 +0200 Subject: [PATCH] table: added support for booleans --- table.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/table.lua b/table.lua index 4e75cbc..2397050 100644 --- a/table.lua +++ b/table.lua @@ -59,7 +59,7 @@ do file:write( charS.."{"..lookup[v].."},"..charE ) elseif stype == "string" then file:write( charS..exportstring( v )..","..charE ) - elseif stype == "number" then + elseif stype == "number" or stype == "boolean" then file:write( charS..tostring( v )..","..charE ) end end @@ -79,7 +79,7 @@ do str = charS.."[{"..lookup[i].."}]=" elseif stype == "string" then str = charS.."["..exportstring( i ).."]=" - elseif stype == "number" then + elseif stype == "number" or stype == "boolean" then str = charS.."["..tostring( i ).."]=" end @@ -94,7 +94,7 @@ do file:write( str.."{"..lookup[v].."},"..charE ) elseif stype == "string" then file:write( str..exportstring( v )..","..charE ) - elseif stype == "number" then + elseif stype == "number" or stype == "boolean" then file:write( str..tostring( v )..","..charE ) end end