Skip to content

Commit

Permalink
fix: check if *this is src in Array::operator==
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Feb 4, 2024
1 parent d3df414 commit cf75e57
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 cf75e57

Please sign in to comment.