We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb50140 commit 964d855Copy full SHA for 964d855
ortools/util/bitset.h
@@ -625,7 +625,7 @@ class Bitset64 {
625
return Iterator(bitset.data_.data());
626
}
627
628
- bool operator==(const Iterator& other) const { return !(*this == other); }
+ bool operator==(const Iterator& other) const { return !(*this != other); }
629
bool operator!=(const Iterator& other) const {
630
if (other.size_ == 0) {
631
return size_ != 0;
@@ -638,7 +638,7 @@ class Bitset64 {
638
639
Iterator operator++(int) {
640
Iterator other = *this;
641
- (*this)++;
+ ++(*this);
642
return other;
643
644
0 commit comments