Improve int conversion (0X)

pull/231/head
Josselin 6 years ago
parent 5fd3821a0e
commit 62b94d71a7
  1. 2
      slither/slithir/variables/constant.py

@ -14,7 +14,7 @@ class Constant(SlithIRVariable):
assert isinstance(type, ElementaryType)
self._type = type
if type.type in Int + Uint:
if val.startswith('0x'):
if val.startswith('0x') or val.startswith('0X'):
self._val = int(val, 16)
else:
if 'e' in val:

Loading…
Cancel
Save