summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-03-25 13:05:21 (GMT)
committerBrad King <brad.king@kitware.com>2005-03-25 13:05:21 (GMT)
commit7219c7a75cd0ef640b597516d2928f085a506ce1 (patch)
tree471f6847fc79a831a9778d68763a292826a5d70a
parent33768c2797f430834315ad6ff49d8d14e465d620 (diff)
downloadCMake-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.cxx4
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;