diff options
author | Sean McBride <sean@rogue-research.com> | 2015-11-11 21:24:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-11-11 21:27:24 (GMT) |
commit | 710d8bab7ea045216f904798f0df4d21bc94a66c (patch) | |
tree | 0cfafbd9ea2beded51a0e1dcfa3d45be800a0898 | |
parent | 54153fb98dfe6b91ed162e7c195005bf35fcd352 (diff) | |
download | CMake-710d8bab7ea045216f904798f0df4d21bc94a66c.zip CMake-710d8bab7ea045216f904798f0df4d21bc94a66c.tar.gz CMake-710d8bab7ea045216f904798f0df4d21bc94a66c.tar.bz2 |
Fix trivial clang -Wdouble-promotion warnings
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 2 | ||||
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index 20807c8..09902a1 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -2287,7 +2287,7 @@ int cmCTestCoverageHandler::RunBullseyeSourceSummary( { cper /= 2.0f; } - percent_coverage += cper; + percent_coverage += static_cast<double>(cper); float cmet = static_cast<float>(percentFunction + percentBranch); if(totalBranches > 0) { diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index fa3b416..a8f983f 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -579,7 +579,7 @@ int cmCTestTestHandler::ProcessHandler() } cmCTestLog(this->CTest, HANDLER_OUTPUT, std::endl - << static_cast<int>(percent + .5) << "% tests passed, " + << static_cast<int>(percent + .5f) << "% tests passed, " << failed.size() << " tests failed out of " << total << std::endl); if(this->CTest->GetLabelSummary()) |