vector comparison fix
This commit is contained in:
parent
d81da8b0b6
commit
29ea2927e3
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue