Skip to content

Commit 964d855

Browse files
committed
fix
1 parent fb50140 commit 964d855

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ortools/util/bitset.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ class Bitset64 {
625625
return Iterator(bitset.data_.data());
626626
}
627627

628-
bool operator==(const Iterator& other) const { return !(*this == other); }
628+
bool operator==(const Iterator& other) const { return !(*this != other); }
629629
bool operator!=(const Iterator& other) const {
630630
if (other.size_ == 0) {
631631
return size_ != 0;
@@ -638,7 +638,7 @@ class Bitset64 {
638638

639639
Iterator operator++(int) {
640640
Iterator other = *this;
641-
(*this)++;
641+
++(*this);
642642
return other;
643643
}
644644

0 commit comments

Comments
 (0)