Skip to content

Commit

Permalink
Fix imprecise serialization of large numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed Jan 26, 2015
1 parent 5b55deb commit 47aca6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/common/serialize.lua
Expand Up @@ -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
Expand Down

0 comments on commit 47aca6f

Please sign in to comment.