summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-08 19:31:26 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-08 19:31:26 +0000
commit10f0cfeaf84724d87a4c1ddf476776d9e2bdba06 (patch)
tree15ac3b11d0132793cd93d3ea8e0c72321a128408 /ace
parent5fc268c8a94824d5130cc6a1552931307c1a633a (diff)
downloadATCD-10f0cfeaf84724d87a4c1ddf476776d9e2bdba06.tar.gz
ChangeLogTag: Thu Jul 08 14:29:42 1999 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r--ace/OS.i5
1 files changed, 2 insertions, 3 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 36a482bc141..37c397fba89 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -9773,7 +9773,7 @@ ACE_OS::gethrtime (const ACE_HRTimer_Op op)
// Carefully create the return value to avoid arithmetic overflow
// if ACE_hrtime_t is ACE_U_LongLong.
ACE_hrtime_t now = ts.tv_sec;
- now *= (ACE_UINT32) ACE_ONE_SECOND_IN_NSECS;
+ now *= ACE_U_ONE_SECOND_IN_NSECS;
now += ts.tv_nsec;
return now;
@@ -9818,8 +9818,7 @@ ACE_OS::gethrtime (const ACE_HRTimer_Op op)
// Carefully create the return value to avoid arithmetic overflow
// if ACE_hrtime_t is ACE_U_LongLong.
return ACE_static_cast (ACE_hrtime_t, ts.tv_sec) *
- (ACE_UINT32) ACE_ONE_SECOND_IN_NSECS +
- ts.tv_nsec;
+ ACE_U_ONE_SECOND_IN_NSECS + ACE_static_cast (ACE_hrtime_t, ts.tv_nsec);
#else
ACE_UNUSED_ARG (op);
const ACE_Time_Value now = ACE_OS::gettimeofday ();