Increased MAX_INT and MIN_INT to 2^53 - 1

This commit is contained in:
Tonye Jack 2021-09-27 12:46:21 -04:00 committed by GitHub
parent f039af2810
commit 0d1c1e18e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,8 +47,8 @@ class Scalar(UnmountedType, BaseType):
#
# n.b. JavaScript's integers are safe between -(2^53 - 1) and 2^53 - 1 because
# they are internally represented as IEEE 754 doubles.
MAX_INT = 2147483647
MIN_INT = -2147483648
MAX_INT = 9007199254740991
MIN_INT = -9007199254740991
class Int(Scalar):