Skip to content

Commit

Permalink
fix: avoid infinite recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Feb 4, 2024
1 parent 85a6531 commit 5df5468
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 == src)
if (this == &src)
return true;

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

0 comments on commit 5df5468

Please sign in to comment.