Skip to content

Commit

Permalink
fix json error with huge numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Jul 7, 2024
1 parent 51e9db3 commit 520965e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extlibs/json/jsonc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ local function decode_number()
end
end
statusPos = statusPos + #num
return tonumber(num)
return tonumber(num) or math.huge
end

local function decode_number_zero()
Expand Down

0 comments on commit 520965e

Please sign in to comment.