Skip to content

Commit c1af894

Browse files
QUICHE teamcopybara-github
QUICHE team
authored andcommitted
Fix QuicIntervalDeque::Iterator::operator+=
The code was referring to a member which didn't exist. This was uncovered by a recent Clang change [1] which made the compiler lookup these names at template parse time rather than instantiation time. 1. llvm/llvm-project#90152 PiperOrigin-RevId: 630952202
1 parent f0aac12 commit c1af894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quiche/quic/core/quic_interval_deque.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ class QUICHE_NO_EXPORT QuicIntervalDeque {
198198
Iterator operator+(difference_type amount) const {
199199
Iterator copy = *this;
200200
copy.index_ += amount;
201-
QUICHE_DCHECK(copy.index_ < copy.deque_->size());
201+
QUICHE_DCHECK(copy.index_ < copy.deque_->Size());
202202
return copy;
203203
}
204204
Iterator& operator+=(difference_type amount) {
205205
index_ += amount;
206-
QUICHE_DCHECK(index_ < deque_->size());
206+
QUICHE_DCHECK(index_ < deque_->Size());
207207
return *this;
208208
}
209209
difference_type operator-(const Iterator& rhs) const {

0 commit comments

Comments
 (0)