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

Unified Diff: net/quic/quic_bandwidth.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/crypto/strike_register.cc ('k') | net/quic/quic_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_bandwidth.cc
diff --git a/net/quic/quic_bandwidth.cc b/net/quic/quic_bandwidth.cc
index dbce39d354908a30c431dc7b5776ea795181f07c..8612d5f07f0ee3e4aeb61e97f1de00010d8ad6f7 100644
--- a/net/quic/quic_bandwidth.cc
+++ b/net/quic/quic_bandwidth.cc
@@ -96,7 +96,7 @@ QuicBandwidth QuicBandwidth::Subtract(const QuicBandwidth& delta) const {
}
QuicBandwidth QuicBandwidth::Scale(float scale_factor) const {
- return QuicBandwidth(bits_per_second_ * scale_factor);
+ return QuicBandwidth(static_cast<int64>(bits_per_second_ * scale_factor));
}
QuicTime::Delta QuicBandwidth::TransferTime(QuicByteCount bytes) const {
« no previous file with comments | « net/quic/crypto/strike_register.cc ('k') | net/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698