From 47aca6f6d164347de950a46b11e1774445cdb9e3 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sun, 25 Jan 2015 20:19:35 -0500 Subject: [PATCH] Fix imprecise serialization of large numbers --- builtin/common/serialize.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/common/serialize.lua b/builtin/common/serialize.lua index b7643b2f4..24b2a12ee 100644 --- a/builtin/common/serialize.lua +++ b/builtin/common/serialize.lua @@ -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 -- 2.25.1