mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-13 01:29:02 -05:00
BUG: Adjusted GetNightlyTime computation to not depend on time_t being a signed type.
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user