summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2021-06-14 17:43:21 +0800
committerXusheng <xusheng@vector35.com>2021-06-14 17:43:21 +0800
commitb4d5c7aea5c7f1f0164bf3cef8816bc3ab8f6308 (patch)
tree054e3d64cea1dc39e42f878b4075da15ebf9f3f2 /python
parentea830c8f7b42cc7aebf5f714699011b3e5fae850 (diff)
Fix comparison of ReferenceSource and TypeFieldReference
Diffstat (limited to 'python')
-rw-r--r--python/architecture.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/architecture.py b/python/architecture.py
index e23f39d7..acb7fd2c 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -2752,7 +2752,7 @@ class ReferenceSource(object):
def __eq__(self, other):
if not isinstance(other, self.__class__):
return NotImplemented
- return (self.function, self.arch, self.address) == (other.address, other.function, other.arch)
+ return (self.function, self.arch, self.address) == (other.function, other.arch, other.address)
def __ne__(self, other):
if not isinstance(other, self.__class__):
@@ -2827,7 +2827,7 @@ class TypeFieldReference(object):
if not isinstance(other, self.__class__):
return NotImplemented
return (self.function, self.arch, self.address, self._size) ==\
- (other.address, other.function, other.arch, other.size)
+ (other.function, other.arch, other.address, other.size)
def __ne__(self, other):
if not isinstance(other, self.__class__):