summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-01-27 14:41:32 -0500
committerPeter LaFosse <peter@vector35.com>2022-01-27 14:42:37 -0500
commit5684347b252ded70745185415513d45a8a4a6191 (patch)
treeffea703e30369f755779553686f37e17666f71c0 /python
parent77156d6c65296f6790e05937d904eea85247c408 (diff)
Add LowLevelILConstantBase.__hash__
Diffstat (limited to 'python')
-rw-r--r--python/lowlevelil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index e255b431..87eb5a34 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -1051,6 +1051,9 @@ class LowLevelILConstantBase(LowLevelILInstruction, Constant):
def __ge__(self, other:'LowLevelILConstantBase'):
return self.constant >= other.constant
+ def __hash__(self):
+ return LowLevelILInstruction.__hash__(self)
+
@property
def constant(self) -> int:
return self._get_int(0)