Skip to content

Commit

Permalink
integer boundaries are inclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Dec 30, 2015
1 parent 7a50c3c commit 884b02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erppeek.py
Expand Up @@ -154,7 +154,7 @@ def literal_eval(expression, _octal_digits=frozenset('01234567')):
if expression[:1] == '0' and expression[1:2] in _octal_digits:
raise SyntaxError('unsupported octal notation')
value = _convert(node.body)
if isinstance(value, int_types) and not MININT < value < MAXINT:
if isinstance(value, int_types) and not MININT <= value <= MAXINT:
raise ValueError('overflow, int exceeds XML-RPC limits')
return value

Expand Down

0 comments on commit 884b02a

Please sign in to comment.