Skip to content
Snippets Groups Projects
Commit 47aca6f6 authored by ShadowNinja's avatar ShadowNinja
Browse files

Fix imprecise serialization of large numbers

parent 5b55deb1
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment