From 84f2e652e4a801614b29f275a421ca60c7c33404 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 20 Dec 2022 21:10:54 +0100 Subject: [PATCH] Fix comparison operator on `Array` and `BitArray` --- Source/Engine/Core/Collections/Array.h | 3 ++- Source/Engine/Core/Collections/BitArray.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Core/Collections/Array.h b/Source/Engine/Core/Collections/Array.h index b89acc44f..d2cd50afd 100644 --- a/Source/Engine/Core/Collections/Array.h +++ b/Source/Engine/Core/Collections/Array.h @@ -872,8 +872,9 @@ public: if (!(data[i] == otherData[i])) return false; } + return true; } - return true; + return false; } template diff --git a/Source/Engine/Core/Collections/BitArray.h b/Source/Engine/Core/Collections/BitArray.h index 660b1e0fe..8d7530e42 100644 --- a/Source/Engine/Core/Collections/BitArray.h +++ b/Source/Engine/Core/Collections/BitArray.h @@ -343,8 +343,9 @@ public: if (!(Get(i) == other.Get(i))) return false; } + return true; } - return true; + return false; } template