Index: base/test/gtest_xml_util.cc |
diff --git a/base/test/gtest_xml_util.cc b/base/test/gtest_xml_util.cc |
index 8a153dc8cc790440a97335aa575e6dcdc22f892c..7a5ba8a87d3039c1d01b90f96f2d830d0d9d628b 100644 |
--- a/base/test/gtest_xml_util.cc |
+++ b/base/test/gtest_xml_util.cc |
@@ -178,9 +178,9 @@ bool ProcessGTestOutput(const base::FilePath& output_file, |
std::string test_time_str; |
if (!xml_reader.NodeAttribute("time", &test_time_str)) |
return false; |
- result.elapsed_time = |
- TimeDelta::FromMicroseconds(strtod(test_time_str.c_str(), NULL) * |
- Time::kMicrosecondsPerSecond); |
+ result.elapsed_time = TimeDelta::FromMicroseconds( |
+ static_cast<int64>(strtod(test_time_str.c_str(), NULL) * |
+ Time::kMicrosecondsPerSecond)); |
result.status = TestResult::TEST_SUCCESS; |