| Index: net/quic/core/quic_bandwidth.h
|
| diff --git a/net/quic/core/quic_bandwidth.h b/net/quic/core/quic_bandwidth.h
|
| index 7a8b55d8dbaa5ddd6b65442f8f69a080255fc661..2d131d277ed826fb5e84327a0f239c1868c7de55 100644
|
| --- a/net/quic/core/quic_bandwidth.h
|
| +++ b/net/quic/core/quic_bandwidth.h
|
| @@ -9,6 +9,7 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include <cmath>
|
| #include <ostream>
|
|
|
| #include "base/compiler_specific.h"
|
| @@ -98,7 +99,8 @@ inline QuicBandwidth operator-(QuicBandwidth lhs, QuicBandwidth rhs) {
|
| return QuicBandwidth(lhs.bits_per_second_ - rhs.bits_per_second_);
|
| }
|
| inline QuicBandwidth operator*(QuicBandwidth lhs, float rhs) {
|
| - return QuicBandwidth(static_cast<int64_t>(lhs.bits_per_second_ * rhs));
|
| + return QuicBandwidth(
|
| + static_cast<int64_t>(std::llround(lhs.bits_per_second_ * rhs)));
|
| }
|
| inline QuicBandwidth operator*(float lhs, QuicBandwidth rhs) {
|
| return rhs * lhs;
|
|
|