From fa0b5d9c439a04c150053665e08de346fc5c440c Mon Sep 17 00:00:00 2001 From: Greg Date: Thu, 29 Feb 2024 04:10:03 +0000 Subject: [PATCH] hardcode js safe range --- Sources/Napoli/ValueConvertible.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Napoli/ValueConvertible.swift b/Sources/Napoli/ValueConvertible.swift index e446697..30c3092 100644 --- a/Sources/Napoli/ValueConvertible.swift +++ b/Sources/Napoli/ValueConvertible.swift @@ -444,7 +444,7 @@ extension Int64: ValueConvertible { return result! } - public static let jsSafeRange: ClosedRange = -(Int64(powl(2, 53)) - 1) ... (Int64(powl(2, 53)) - 1) + public static let jsSafeRange: ClosedRange = -9007199254740991 ... 9007199254740991 public init(_ any: AnyValue) throws { switch any {