summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.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/cmCTestMultiProcessHandler.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/cmCTestMultiProcessHandler.cxx')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx
index 7ab9cac..c62dbce 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.cxx
+++ b/Source/CTest/cmCTestMultiProcessHandler.cxx
@@ -251,7 +251,8 @@ bool cmCTestMultiProcessHandler::CheckOutput()
this->TestRunningMap[test] = false;
this->RunningTests.erase(p);
this->WriteCheckpoint(test);
- this->WriteCostData(test, p->GetTestResults().ExecutionTime);
+ this->WriteCostData(test, static_cast<float>(
+ p->GetTestResults().ExecutionTime));
this->RunningCount -= GetProcessorsUsed(test);
delete p;
}
@@ -276,7 +277,7 @@ void cmCTestMultiProcessHandler::ReadCostData()
cmSystemTools::SplitString(line.c_str(), ' ');
int index = atoi(parts[0].c_str());
- float cost = atof(parts[1].c_str());
+ float cost = static_cast<float>(atof(parts[1].c_str()));
if(this->Properties[index] && this->Properties[index]->Cost == 0)
{
this->Properties[index]->Cost = cost;