fix int ranges

This commit is contained in:
Itai Shirav 2016-06-26 17:41:17 +03:00
parent 64f8cde1c0
commit 5b033a1e1b

View File

@ -154,22 +154,22 @@ class Int8Field(BaseIntField):
class Int16Field(BaseIntField):
min_value = -2**16
max_value = 2**16 - 1
min_value = -2**15
max_value = 2**15 - 1
db_type = 'Int16'
class Int32Field(BaseIntField):
min_value = -2**32
max_value = 2**32 - 1
min_value = -2**31
max_value = 2**31 - 1
db_type = 'Int32'
class Int64Field(BaseIntField):
min_value = -2**64
max_value = 2**64 - 1
min_value = -2**63
max_value = 2**63 - 1
db_type = 'Int64'