| Index: net/quic/core/quic_time.h
|
| diff --git a/net/quic/core/quic_time.h b/net/quic/core/quic_time.h
|
| index 9e1e238bfe31b3130975f4a4161b8bd94b006d9b..92e31bcc54bc963249172809c1fa6f5b404bdee5 100644
|
| --- a/net/quic/core/quic_time.h
|
| +++ b/net/quic/core/quic_time.h
|
| @@ -13,6 +13,7 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include <cmath>
|
| #include <ostream>
|
|
|
| #include "base/compiler_specific.h"
|
| @@ -247,7 +248,8 @@ inline QuicTime::Delta operator*(QuicTime::Delta lhs, int rhs) {
|
| return QuicTime::Delta(lhs.time_offset_ * rhs);
|
| }
|
| inline QuicTime::Delta operator*(QuicTime::Delta lhs, double rhs) {
|
| - return QuicTime::Delta(lhs.time_offset_ * rhs);
|
| + return QuicTime::Delta(
|
| + static_cast<int64_t>(std::llround(lhs.time_offset_ * rhs)));
|
| }
|
| inline QuicTime::Delta operator*(int lhs, QuicTime::Delta rhs) {
|
| return rhs * lhs;
|
|
|