improved optimization
This commit is contained in:
1 parent
7871872182
commit
387d47c79c
1 file changed
+2
-2
@@ -255,8 +255,8 @@ epicsTime::operator time_t_wrapper () const
|
||||
time_t_wrapper wrap;
|
||||
|
||||
if ( lti.useDiffTimeOptimization ) {
|
||||
if ( this->secPastEpoch < ULONG_MAX - lti.epicsEpochOffset ) {
|
||||
wrap.ts = static_cast <time_t> ( this->secPastEpoch + lti.epicsEpochOffset );
|
||||
if ( this->secPastEpoch < ULONG_MAX - lti.epicsEpochOffsetAsAnUnsignedLong ) {
|
||||
wrap.ts = static_cast <time_t> ( this->secPastEpoch + lti.epicsEpochOffsetAsAnUnsignedLong );
|
||||
return wrap;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user