From 32911a20643023de3d19b4dfce76dfde312ca560 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 b7643b2..24b2a12 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