Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(774)

Unified Diff: net/quic/stream_sequencer_buffer.cc

Issue 1808013003: Fix a type casting bug in quic stream sequencer buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@117245279
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/quic/stream_sequencer_buffer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/stream_sequencer_buffer.cc
diff --git a/net/quic/stream_sequencer_buffer.cc b/net/quic/stream_sequencer_buffer.cc
index 5b98452d03cb8c5425220674b41cd038c2a6a0c7..0582fd70f4dbe5b00f68e1eef8d594d2bf6481e4 100644
--- a/net/quic/stream_sequencer_buffer.cc
+++ b/net/quic/stream_sequencer_buffer.cc
@@ -166,7 +166,7 @@ inline void StreamSequencerBuffer::UpdateGapList(
start_offset + bytes_written) {
// New data has been written into the middle of the buffer.
auto current = gap_with_new_data_written++;
- size_t current_end = current->end_offset;
+ QuicStreamOffset current_end = current->end_offset;
current->end_offset = start_offset;
gaps_.insert(gap_with_new_data_written,
Gap(start_offset + bytes_written, current_end));
« no previous file with comments | « no previous file | net/quic/stream_sequencer_buffer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698