From 3b833bfaf19619390941873830dc1f71ad5fa301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 12 Dec 2022 09:10:37 +0100 Subject: [PATCH] Revert "RID: Change comparison operators to use RID_Data id instead of address" (cherry picked from commit c404cc0e5819914af34b37bd964260c66e5b4cab) --- core/rid.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/rid.h b/core/rid.h index 1d9eb1dbf94..747c623ffbb 100644 --- a/core/rid.h +++ b/core/rid.h @@ -68,13 +68,13 @@ public: return _data == p_rid._data; } _FORCE_INLINE_ bool operator<(const RID &p_rid) const { - return get_id() < p_rid.get_id(); + return _data < p_rid._data; } _FORCE_INLINE_ bool operator<=(const RID &p_rid) const { - return get_id() <= p_rid.get_id(); + return _data <= p_rid._data; } _FORCE_INLINE_ bool operator>(const RID &p_rid) const { - return get_id() > p_rid.get_id(); + return _data > p_rid._data; } _FORCE_INLINE_ bool operator!=(const RID &p_rid) const { return _data != p_rid._data;