Merge topic 'fix-clang-Wdouble-promotion'
710d8bab
Fix trivial clang -Wdouble-promotion warnings
This commit is contained in:
commit
8f8f9e216e
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue