vector comparison fix

This commit is contained in:
Jorijn van der Graaf 2026-02-19 06:56:40 +01:00
commit 29ea2927e3

View file

@ -295,7 +295,7 @@ namespace Crafter {
template <typename BT>
constexpr bool operator==(BT b) const {
for(std::uint32_t i = 0; i < Len; i++) {
if(this->v[i] != this->v[i]) {
if(this->v[i] != b->v[i]) {
return false;
}
}
@ -304,7 +304,7 @@ namespace Crafter {
template <typename BT>
constexpr bool operator!=(BT b) const {
for(std::uint32_t i = 0; i < Len; i++) {
if(this->v[i] != this->v[i]) {
if(this->v[i] != b->v[i]) {
return true;
}
}