summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan <jordan@psifertex.com>2018-10-31 14:25:53 -0400
committerGitHub <noreply@github.com>2018-10-31 14:25:53 -0400
commitaeaf94da627c819eece50fc2773cdbf3bb888ec0 (patch)
tree38ffac24749578c3c65f5356e411d6f010623893 /python
parent224e2ae3cd02083cadce9964a601b85b36286b79 (diff)
parentf12ee0b91cf6d4d5a899ebe601bbb089f74f63c4 (diff)
Merge pull request #1191 from ehennenfent/patch-1
Type check SSA variables in __eq__
Diffstat (limited to 'python')
-rw-r--r--python/mediumlevelil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index 93c45dcc..103d8c5f 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -43,7 +43,7 @@ class SSAVariable(object):
return "<ssa %s version %d>" % (repr(self.var), self.version)
def __eq__(self, other):
- return (
+ return isinstance(other, SSAVariable) and (
(self.var, self.version) ==
(other.var, other.version)
)