Skip to content

Commit c44f4be

Browse files
committed
fix BinaryIterator::operator-= to pass compile in clang20
1 parent fb39d4b commit c44f4be

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)