mirror of
https://github.com/google/googletest.git
synced 2025-01-01 14:57:54 +08:00
Make an int64->double conversion explicit to silence -Wconversion.
Addresses issue #173: https://code.google.com/p/googlemock/issues/detail?id=173
This commit is contained in:
parent
1d53731f2c
commit
5c996c6466
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user