Fix imprecise serialization of large numbers

This commit is contained in:
ShadowNinja 2015-01-25 20:19:35 -05:00 committed by Nils Dagsson Moskopp
parent 4ff1574c23
commit 32911a2064
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ function core.serialize(x)
function dump_val(x)
local tp = type(x)
if x == nil then return "nil"
elseif tp == "number" then return tostring(x)
elseif tp == "number" then return string.format("%d", x)
elseif tp == "string" then return string.format("%q", x)
elseif tp == "boolean" then return x and "true" or "false"
elseif tp == "function" then