Commit 5c996c64 authored by kosak's avatar kosak
Browse files

Make an int64->double conversion explicit to silence -Wconversion.

Addresses issue #173:
  https://code.google.com/p/googlemock/issues/detail?id=173
parent 1d53731f
......@@ -3501,7 +3501,7 @@ std::string XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters(
// Formats the given time in milliseconds as seconds.
std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) {
::std::stringstream ss;
ss << ms/1000.0;
ss << (static_cast<double>(ms) * 1e-3);
return ss.str();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment