Skip to content

Commit 050ad22

Browse files
authored
Fix BinaryIterator::operator-= to pass compile in clang20 (#578)
### What problem were solved in this pull request? Issue Number: close #577 Problem: Compile failed with clang20 ### What is changed and how it works? fix `BinaryIterator::operator-=` ### Other information
1 parent fb39d4b commit 050ad22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/lang/lower_bound.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class BinaryIterator
106106
data_ += (item_num_ * n);
107107
return *this;
108108
}
109-
BinaryIterator &operator-=(int n) { return this->operator+(-n); }
109+
BinaryIterator &operator-=(int n) { return this->operator+=(-n); }
110110
BinaryIterator &operator++() { return this->operator+=(1); }
111111
BinaryIterator operator++(int)
112112
{

0 commit comments

Comments
 (0)