From cf75e574bf4fd6dc57aa87974d5a98cb9fd4345a Mon Sep 17 00:00:00 2001 From: vil02 Date: Sun, 4 Feb 2024 18:18:47 +0100 Subject: [PATCH] fix: check if `*this` is `src` in `Array::operator==` --- api/array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/array.hpp b/api/array.hpp index 1ea684dc1..27d094dc1 100644 --- a/api/array.hpp +++ b/api/array.hpp @@ -142,7 +142,7 @@ namespace jule constexpr jule::Bool operator==(const jule::Array &src) const { - if (this->begin() == src.begin()) + if (*this == src) return true; jule::Array::ConstIterator it = src.begin();