summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-10-02 19:30:01 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-10-02 19:30:01 (GMT)
commitccb0cf130673b55035106067997e9d135d4d27fa (patch)
treead0e4fe75d4036e576a6b2992a15baeb7c79fcb8 /Source/CTest/cmCTestTestHandler.cxx
parent837364cb04a53a0fd3f5150da4f56524066fe2a7 (diff)
downloadCMake-ccb0cf130673b55035106067997e9d135d4d27fa.zip
CMake-ccb0cf130673b55035106067997e9d135d4d27fa.tar.gz
CMake-ccb0cf130673b55035106067997e9d135d4d27fa.tar.bz2
Fix warnings in CMake source code.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 2ad2e37..5090cd0 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -574,16 +574,16 @@ int cmCTestTestHandler::ProcessHandler()
}
}
- float percent = float(passed.size()) * 100.0f / total;
+ float percent = float(passed.size()) * 100.0f / float(total);
if ( failed.size() > 0 && percent > 99)
{
percent = 99;
}
-
+
cmCTestLog(this->CTest, HANDLER_OUTPUT, std::endl
<< static_cast<int>(percent + .5) << "% tests passed, "
- << failed.size() << " tests failed out of "
- << total << std::endl);
+ << failed.size() << " tests failed out of "
+ << total << std::endl);
if(this->CTest->GetLabelSummary())
{
this->PrintLabelSummary();
@@ -1982,7 +1982,7 @@ bool cmCTestTestHandler::SetTestsProperties(
}
if ( key == "COST" )
{
- rtit->Cost = atof(val.c_str());
+ rtit->Cost = static_cast<float>(atof(val.c_str()));
}
if ( key == "RUN_SERIAL" )
{