Skip to content

Commit 583207b

Browse files
committed
Fix ArrayBase::operator!= for equal arrays
The last branch returned true when sizes and elements matched; return false so equal arrays compare unequal only when they actually differ.
1 parent 1e25cc3 commit 583207b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BeefySysLib/util/Array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class ArrayBase : public TAlloc
285285
for (intptr i = 0; i < mSize; i++)
286286
if (mVals[i] != arrB.mVals[i])
287287
return true;
288-
return true;
288+
return false;
289289
}
290290

291291
const_iterator begin() const

0 commit comments

Comments
 (0)