From b4d5c7aea5c7f1f0164bf3cef8816bc3ab8f6308 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Mon, 14 Jun 2021 17:43:21 +0800 Subject: Fix comparison of ReferenceSource and TypeFieldReference --- python/architecture.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') 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__): -- cgit v1.3.1