Skip to content
Permalink
Browse files

Fix imprecise serialization of large numbers

  • Loading branch information...
ShadowNinja committed Jan 26, 2015
1 parent 5b55deb commit 47aca6f6d164347de950a46b11e1774445cdb9e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 47aca6f

Please sign in to comment.
You can’t perform that action at this time.