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

Unified Diff: net/quic/quic_fec_group.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « net/quic/quic_data_writer.cc ('k') | net/quic/quic_flags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_fec_group.cc
diff --git a/net/quic/quic_fec_group.cc b/net/quic/quic_fec_group.cc
index 5d55aedffa7b131c88b5249b6de0f3260ade5074..3d52810c9bd6809047dea7b28768e59d321264dd 100644
--- a/net/quic/quic_fec_group.cc
+++ b/net/quic/quic_fec_group.cc
@@ -164,8 +164,9 @@ bool QuicFecGroup::UpdateParity(StringPiece payload) {
size_t QuicFecGroup::NumMissingPackets() const {
if (min_protected_packet_ == kNoSequenceNumber)
return numeric_limits<size_t>::max();
- return (max_protected_packet_ - min_protected_packet_ + 1) -
- received_packets_.size();
+ return static_cast<size_t>(
+ (max_protected_packet_ - min_protected_packet_ + 1) -
+ received_packets_.size());
}
} // namespace net
« no previous file with comments | « net/quic/quic_data_writer.cc ('k') | net/quic/quic_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698