Skip to content

Commit

Permalink
fix: check if *this is src in Array::operator== (julelang#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Feb 27, 2024
1 parent df69fef commit 873a533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ namespace jule

constexpr jule::Bool operator==(const jule::Array<Item, N> &src) const
{
if (this->begin() == src.begin())
if (*this == src)
return true;

jule::Array<Item, N>::ConstIterator it = src.begin();
Expand Down

0 comments on commit 873a533

Please sign in to comment.