diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-09-05 12:31:47 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:44 -0400 |
| commit | 9fff4bb84db93a7b11a8537a1cc0293c542132d0 (patch) | |
| tree | f77e49dff085f14e6263de5262602cf4baa8df2c /python/lowlevelil.py | |
| parent | 7070c4efa14e8816d5c429c5c92bf1ad9a4f30eb (diff) | |
Fix IL comparision instructions
Diffstat (limited to 'python/lowlevelil.py')
| -rw-r--r-- | python/lowlevelil.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py index dc983362..dd49f10a 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -466,33 +466,33 @@ class LowLevelILInstruction: def __repr__(self): return "<il: %s>" % str(self) - def __eq__(self, other): - if not isinstance(other, self.__class__): + def __eq__(self, other:'LowLevelILInstruction') -> bool: + if not isinstance(other, LowLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index == other.expr_index - def __ne__(self, other): - if not isinstance(other, self.__class__): + def __ne__(self, other:'LowLevelILInstruction') -> bool: + if not isinstance(other, LowLevelILInstruction): return NotImplemented return not (self == other) - def __lt__(self, other): - if not isinstance(other, self.__class__): + def __lt__(self, other:'LowLevelILInstruction') -> bool: + if not isinstance(other, LowLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index < other.expr_index - def __le__(self, other): - if not isinstance(other, self.__class__): + def __le__(self, other:'LowLevelILInstruction') -> bool: + if not isinstance(other, LowLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index <= other.expr_index - def __gt__(self, other): - if not isinstance(other, self.__class__): + def __gt__(self, other:'LowLevelILInstruction') -> bool: + if not isinstance(other, LowLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index > other.expr_index - def __ge__(self, other): - if not isinstance(other, self.__class__): + def __ge__(self, other:'LowLevelILInstruction') -> bool: + if not isinstance(other, LowLevelILInstruction): return NotImplemented return self.function == other.function and self.expr_index >= other.expr_index |
