Fix trivial clang -Wdouble-promotion warnings

This commit is contained in:
Sean McBride 2015-11-11 16:24:51 -05:00 committed by Brad King
parent 54153fb98d
commit 710d8bab7e
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())