mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Fix imprecise serialization of large numbers
This commit is contained in:
parent
5b55deb1eb
commit
47aca6f6d1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue