Skip to content

Commit 18eaae5

Browse files
committed
Fix code comments in IntegerValidator
1 parent 96d56ba commit 18eaae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validataclass/validators/integer_validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class IntegerValidator(Validator):
5656
"""
5757

5858
# Constants (minimum and maximum values for a 32 bit integer)
59-
DEFAULT_MIN_VALUE = -2147483648 # -2^32
60-
DEFAULT_MAX_VALUE = 2147483647 # 2^32 - 1
59+
DEFAULT_MIN_VALUE = -2147483648 # -2^31
60+
DEFAULT_MAX_VALUE = 2147483647 # 2^31 - 1
6161

6262
# Value constraints
6363
min_value: Optional[int] = None

0 commit comments

Comments
 (0)