diff options
author | Brad King <brad.king@kitware.com> | 2010-06-29 13:52:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-06-29 13:52:12 (GMT) |
commit | ff1f8d0b53c37336645d4d53fc30134540d17ddd (patch) | |
tree | 140deb30db33b7dfdae6d22ecf43897640526d42 /Source/cmCTest.cxx | |
parent | 6fc4cd86806b349c804cf9dacb2dd04c289a684f (diff) | |
download | CMake-ff1f8d0b53c37336645d4d53fc30134540d17ddd.zip CMake-ff1f8d0b53c37336645d4d53fc30134540d17ddd.tar.gz CMake-ff1f8d0b53c37336645d4d53fc30134540d17ddd.tar.bz2 |
Fix or cast more integer conversions in cmake
These were revealed by GCC's -Wconversion option. Fix types where it is
easy to do so. Cast in cases we know the integer will not be truncated.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index bd69d6c..4d56257 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1169,7 +1169,7 @@ int cmCTest::RunMakeCommand(const char* command, std::string* output, if ( tick % tick_line_len == 0 && tick > 0 ) { cmCTestLog(this, HANDLER_OUTPUT, " Size: " - << int((output->size() / 1024.0) + 1) << "K" << std::endl + << int((double(output->size()) / 1024.0) + 1) << "K" << std::endl << " " << std::flush); } } @@ -1181,7 +1181,7 @@ int cmCTest::RunMakeCommand(const char* command, std::string* output, } } cmCTestLog(this, OUTPUT, " Size of output: " - << int(output->size() / 1024.0) << "K" << std::endl); + << int(double(output->size()) / 1024.0) << "K" << std::endl); cmsysProcess_WaitForExit(cp, 0); |