From 520965e1a904623e841c96bcf7dc5aa4bf3f36ef Mon Sep 17 00:00:00 2001 From: Bauumm Date: Mon, 8 Jul 2024 00:33:55 +0200 Subject: [PATCH] fix json error with huge numbers --- extlibs/json/jsonc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extlibs/json/jsonc.lua b/extlibs/json/jsonc.lua index a67d63ad..59c36903 100644 --- a/extlibs/json/jsonc.lua +++ b/extlibs/json/jsonc.lua @@ -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()