diff options
author | Sean McBride <sean@rogue-research.com> | 2015-11-11 16:24:51 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-11-11 16:27:24 -0500 |
commit | 710d8bab7ea045216f904798f0df4d21bc94a66c (patch) | |
tree | 0cfafbd9ea2beded51a0e1dcfa3d45be800a0898 /Source/CTest | |
parent | 54153fb98dfe6b91ed162e7c195005bf35fcd352 (diff) | |
download | cmake-710d8bab7ea045216f904798f0df4d21bc94a66c.tar.gz |
Fix trivial clang -Wdouble-promotion warnings
Diffstat (limited to 'Source/CTest')
-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 20807c8ea9..09902a1bb5 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 fa3b416845..a8f983f6fa 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()) |