Index: base/time/time.h |
diff --git a/base/time/time.h b/base/time/time.h |
index d6f6f52663a8a4665a7a3861b6be8ae9b5c1125e..3cf3746166ed8dc16cc937945d0918cfe6ef8ede 100644 |
--- a/base/time/time.h |
+++ b/base/time/time.h |
@@ -538,7 +538,7 @@ inline TimeDelta TimeDelta::FromSecondsD(double secs) { |
// Preserve max to prevent overflow. |
if (secs == std::numeric_limits<double>::infinity()) |
return Max(); |
- return TimeDelta(secs * Time::kMicrosecondsPerSecond); |
+ return TimeDelta(static_cast<int64>(secs * Time::kMicrosecondsPerSecond)); |
} |
// static |
@@ -546,7 +546,7 @@ inline TimeDelta TimeDelta::FromMillisecondsD(double ms) { |
// Preserve max to prevent overflow. |
if (ms == std::numeric_limits<double>::infinity()) |
return Max(); |
- return TimeDelta(ms * Time::kMicrosecondsPerMillisecond); |
+ return TimeDelta(static_cast<int64>(ms * Time::kMicrosecondsPerMillisecond)); |
} |
// static |