diff options
author | Brad King <brad.king@kitware.com> | 2005-03-25 13:05:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-03-25 13:05:21 (GMT) |
commit | 7219c7a75cd0ef640b597516d2928f085a506ce1 (patch) | |
tree | 471f6847fc79a831a9778d68763a292826a5d70a | |
parent | 33768c2797f430834315ad6ff49d8d14e465d620 (diff) | |
download | CMake-7219c7a75cd0ef640b597516d2928f085a506ce1.zip CMake-7219c7a75cd0ef640b597516d2928f085a506ce1.tar.gz CMake-7219c7a75cd0ef640b597516d2928f085a506ce1.tar.bz2 |
BUG: Adjusted GetNightlyTime computation to not depend on time_t being a signed type.
-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 d33fd7a..a7fc62c 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -93,12 +93,12 @@ struct tm* cmCTest::GetNightlyTime(std::string str, std::cout << " Future time, subtract day: " << ntime << std::endl; } } - if ( (tctime - ntime) > dayLength ) + if ( tctime > (ntime + dayLength) ) { ntime += dayLength; if ( verbose ) { - std::cout << " Past time, subtract day: " << ntime << std::endl; + std::cout << " Past time, add day: " << ntime << std::endl; } } //std::cout << "nightlySeconds: " << ntime << std::endl; |