From 5df5468dcfb3fdf8344e4b4346bb9c28e9b673f8 Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Sun, 4 Feb 2024 18:31:36 +0100 Subject: [PATCH] fix: avoid infinite recursion --- api/array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/array.hpp b/api/array.hpp index 27d094dc1..40e370161 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 == src) + if (this == &src) return true; jule::Array::ConstIterator it = src.begin();