diff options
author | David Cole <david.cole@kitware.com> | 2010-06-27 15:22:05 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2010-06-27 15:22:05 (GMT) |
commit | 415900ba77648c2472bb2022c46136830a627562 (patch) | |
tree | ae6ad0c55510934ca89bc88aa2a8f759b14de89a /Source/CTest/cmCTestMultiProcessHandler.cxx | |
parent | 4745f4996b73a778f6bdd25669c59b6a6c115fe4 (diff) | |
download | CMake-415900ba77648c2472bb2022c46136830a627562.zip CMake-415900ba77648c2472bb2022c46136830a627562.tar.gz CMake-415900ba77648c2472bb2022c46136830a627562.tar.bz2 |
Eliminate -Wconversion warnings.
Change types of local variables, or casting, or re-arrange
expressions to get rid of "conversion may alter value" warnings
as seen on recent dashboard submissions from londinium.kitware.
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index 1eb84e8..4d39367 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -484,8 +484,9 @@ void cmCTestMultiProcessHandler::CreateTestCostList() } else //we ignore their cost { - this->TestCosts[this->Tests.size() - - this->Properties[i->first]->Index].insert(i->first); + size_t index = this->Tests.size() + - static_cast<size_t>(this->Properties[i->first]->Index); + this->TestCosts[index].insert(i->first); } } } |