mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-22 13:59:51 +03:00
Increased MAX_INT and MIN_INT to 2^53 - 1
This commit is contained in:
parent
f039af2810
commit
0d1c1e18e3
|
@ -47,8 +47,8 @@ class Scalar(UnmountedType, BaseType):
|
||||||
#
|
#
|
||||||
# n.b. JavaScript's integers are safe between -(2^53 - 1) and 2^53 - 1 because
|
# n.b. JavaScript's integers are safe between -(2^53 - 1) and 2^53 - 1 because
|
||||||
# they are internally represented as IEEE 754 doubles.
|
# they are internally represented as IEEE 754 doubles.
|
||||||
MAX_INT = 2147483647
|
MAX_INT = 9007199254740991
|
||||||
MIN_INT = -2147483648
|
MIN_INT = -9007199254740991
|
||||||
|
|
||||||
|
|
||||||
class Int(Scalar):
|
class Int(Scalar):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user