summaryrefslogtreecommitdiff
path: root/python/highlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/highlevelil.py')
-rw-r--r--python/highlevelil.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py
index 05de45de..53678cce 100644
--- a/python/highlevelil.py
+++ b/python/highlevelil.py
@@ -298,27 +298,27 @@ class HighLevelILInstruction:
return f"<{self.operation.name}: {first_line}{continuation}>"
def __eq__(self, other:'HighLevelILInstruction'):
- if not isinstance(other, self.__class__):
+ if not isinstance(other, HighLevelILInstruction):
return NotImplemented
return self.function == other.function and self.expr_index == other.expr_index
def __lt__(self, other:'HighLevelILInstruction'):
- if not isinstance(other, self.__class__):
+ if not isinstance(other, HighLevelILInstruction):
return NotImplemented
return self.function == other.function and self.expr_index < other.expr_index
def __le__(self, other:'HighLevelILInstruction'):
- if not isinstance(other, self.__class__):
+ if not isinstance(other, HighLevelILInstruction):
return NotImplemented
return self.function == other.function and self.expr_index <= other.expr_index
def __gt__(self, other:'HighLevelILInstruction'):
- if not isinstance(other, self.__class__):
+ if not isinstance(other, HighLevelILInstruction):
return NotImplemented
return self.function == other.function and self.expr_index > other.expr_index
def __ge__(self, other:'HighLevelILInstruction'):
- if not isinstance(other, self.__class__):
+ if not isinstance(other, HighLevelILInstruction):
return NotImplemented
return self.function == other.function and self.expr_index >= other.expr_index