This commit is contained in:
Jeff Hill
2002-05-14 20:23:08 +00:00
parent df30f1bfc5
commit 0afd9ddbb8

View File

@@ -255,7 +255,7 @@ epicsTime::operator time_t_wrapper () const
time_t_wrapper wrap;
if ( lti.useDiffTimeOptimization ) {
if ( this->secPastEpoch < ULONG_MAX - lti.epicsEpochOffset ) {
if ( this->secPastEpoch < ULONG_MAX - lti.epicsEpochOffset ) {
wrap.ts = static_cast <time_t> ( this->secPastEpoch + lti.epicsEpochOffset );
return wrap;
}