diff options
Diffstat (limited to 'ace/Time_Value.cpp')
-rw-r--r-- | ace/Time_Value.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/Time_Value.cpp b/ace/Time_Value.cpp index cc6de548ea1..d7a00ba5aa4 100644 --- a/ace/Time_Value.cpp +++ b/ace/Time_Value.cpp @@ -119,7 +119,7 @@ void ACE_Time_Value::set (const FILETIME &file_time) // Convert 100ns units to seconds; this->tv_.tv_sec = (long) (LL_100ns / ((double) (10000 * 1000))); // Convert remainder to microseconds; - this->tv_.tv_usec = (long)((LL_100ns % ((ACE_UINT32)(10000 * 1000))) / 10); + this->tv_.tv_usec = (suseconds_t)((LL_100ns % ((ACE_UINT32)(10000 * 1000))) / 10); #else // Don't use a struct initializer, gcc don't like it. ULARGE_INTEGER _100ns; @@ -131,7 +131,7 @@ void ACE_Time_Value::set (const FILETIME &file_time) // Convert 100ns units to seconds; this->tv_.tv_sec = (long) (_100ns.QuadPart / (10000 * 1000)); // Convert remainder to microseconds; - this->tv_.tv_usec = (long) ((_100ns.QuadPart % (10000 * 1000)) / 10); + this->tv_.tv_usec = (suseconds_t) ((_100ns.QuadPart % (10000 * 1000)) / 10); #endif // ACE_LACKS_LONGLONG_T this->normalize (); } |