From 7219c7a75cd0ef640b597516d2928f085a506ce1 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Fri, 25 Mar 2005 08:05:21 -0500
Subject: BUG: Adjusted GetNightlyTime computation to not depend on time_t
 being a signed type.

---
 Source/cmCTest.cxx | 4 ++--
 1 file 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;
-- 
cgit v0.12