Merge topic 'fix-clang-Wdouble-promotion'

710d8bab Fix trivial clang -Wdouble-promotion warnings
This commit is contained in:
Brad King 2015-11-12 08:48:12 -05:00 committed by CMake Topic Stage
commit 8f8f9e216e
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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())