Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ACE/ace/Time_Value.inl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ACE_Time_Value::operator timeval () const
// ACE_OS_TRACE ("ACE_Time_Value::operator timeval");
#if defined (ACE_HAS_TIME_T_LONG_MISMATCH)
// Recall that on some Windows we substitute another type for timeval in tv_
this->ext_tv_.tv_sec = this->tv_.tv_sec;
this->ext_tv_.tv_usec = this->tv_.tv_usec;
this->ext_tv_.tv_sec = ACE_Utils::truncate_cast<long> (this->tv_.tv_sec);
this->ext_tv_.tv_usec = ACE_Utils::truncate_cast<long> (this->tv_.tv_usec);
return this->ext_tv_;
#else
return this->tv_;
Expand Down Expand Up @@ -41,8 +41,8 @@ ACE_Time_Value::operator const timeval * () const
// ACE_OS_TRACE ("ACE_Time_Value::operator const timeval *");
#if defined (ACE_HAS_TIME_T_LONG_MISMATCH)
// Recall that on some Windows we substitute another type for timeval in tv_
this->ext_tv_.tv_sec = this->tv_.tv_sec;
this->ext_tv_.tv_usec = this->tv_.tv_usec;
this->ext_tv_.tv_sec = ACE_Utils::truncate_cast<long> (this->tv_.tv_sec);
this->ext_tv_.tv_usec = ACE_Utils::truncate_cast<long> (this->tv_.tv_usec);
return (const timeval *) &this->ext_tv_;
#else
return (const timeval *) &this->tv_;
Expand Down
Loading