Skip to content

Commit

Permalink
fix(shared): fix vector operators
Browse files Browse the repository at this point in the history
  • Loading branch information
martonp96 committed Dec 14, 2023
1 parent 80943d9 commit 298e02d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/alt-math/alt-math.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,17 @@ namespace alt

for (std::size_t i = 0; i < Width; ++i)
{
if (this[i] != other[i])
if ((*this)[i] != other[i])
return false;
}

return true;
}

bool operator!=(const Vector& other) const
{
return !(*this == other);
}
};

template<class T, std::size_t W, class _Layout = VectorLayoutAligned<T, W>>
Expand Down

0 comments on commit 298e02d

Please sign in to comment.