From 62b94d71a7d76dc5ecccf3067c478d6fa5b0d9cd Mon Sep 17 00:00:00 2001 From: Josselin Date: Wed, 8 May 2019 11:39:15 +0100 Subject: [PATCH] Improve int conversion (0X) --- slither/slithir/variables/constant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slither/slithir/variables/constant.py b/slither/slithir/variables/constant.py index ba19279e1..058a1c9e4 100644 --- a/slither/slithir/variables/constant.py +++ b/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: