diff options
| author | Jordan <jordan@psifertex.com> | 2018-10-31 14:25:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-31 14:25:53 -0400 |
| commit | aeaf94da627c819eece50fc2773cdbf3bb888ec0 (patch) | |
| tree | 38ffac24749578c3c65f5356e411d6f010623893 /python/mediumlevelil.py | |
| parent | 224e2ae3cd02083cadce9964a601b85b36286b79 (diff) | |
| parent | f12ee0b91cf6d4d5a899ebe601bbb089f74f63c4 (diff) | |
Merge pull request #1191 from ehennenfent/patch-1
Type check SSA variables in __eq__
Diffstat (limited to 'python/mediumlevelil.py')
| -rw-r--r-- | python/mediumlevelil.py | 2 |
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) ) |
