Skip to content

Commit

Permalink
hardcode js safe range
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcotten committed Feb 29, 2024
1 parent 64bba6c commit fa0b5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Napoli/ValueConvertible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ extension Int64: ValueConvertible {
return result!
}

public static let jsSafeRange: ClosedRange<Self> = -(Int64(powl(2, 53)) - 1) ... (Int64(powl(2, 53)) - 1)
public static let jsSafeRange: ClosedRange<Self> = -9007199254740991 ... 9007199254740991

public init(_ any: AnyValue) throws {
switch any {
Expand Down

0 comments on commit fa0b5d9

Please sign in to comment.