diff options
author | Brad King <brad.king@kitware.com> | 2007-11-07 14:12:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-11-07 14:12:34 (GMT) |
commit | 696a016444192e49557c4ad747362d925b778538 (patch) | |
tree | dd595ee5419c15c955564746b8e51da88bc4ba28 | |
parent | 8b9dcc9e1af74ecd85f3f9f839263cfefe486ead (diff) | |
download | CMake-696a016444192e49557c4ad747362d925b778538.zip CMake-696a016444192e49557c4ad747362d925b778538.tar.gz CMake-696a016444192e49557c4ad747362d925b778538.tar.bz2 |
COMP: Fix check for file-too-big to avoid warnings.
-rw-r--r-- | Source/CTest/cmCTestSubmitHandler.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index 8e7919d..1b60bc3 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -697,7 +697,8 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix, // off_t can be bigger than size_t. fread takes size_t. // make sure the file is not too big. - if (st.st_size > (size_t)-1) + if(static_cast<off_t>(static_cast<size_t>(st.st_size)) != + static_cast<off_t>(st.st_size)) { cmCTestLog(this->CTest, ERROR_MESSAGE, " File too big: " << local_file.c_str() << std::endl); |