Skip to content

Conversation

aleksanderd
Copy link

No description provided.

@appgurueu
Copy link

Proper fix should be just using "%.17g".

@appgurueu
Copy link

Okay no, to support newer Lua versions and 64-bit integers, math.tointeger and %d should indeed be used; %g would have to be bumped to %.20g.

dtfiedler added a commit to dtfiedler/json.lua that referenced this pull request Nov 5, 2024
… decmials, return string value of integers

As mentioned in rxi#42 (comment) - Lua 5.3+ supports 64 bit integers. This change modifies the string encoding of numbers to align with those changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants