Commit 7219c7a7 authored by Brad King's avatar Brad King
Browse files

BUG: Adjusted GetNightlyTime computation to not depend on time_t being a signed type.

parent 33768c27
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment