summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-13 15:20:21 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-13 15:20:21 +0000
commitb8b18dfdbbf1b86da0ae273a46fe17f96e04163f (patch)
tree8e19c9e95845623af3ef14c77b639b71aa54950d
parenta4458363b6a4ec691ff8400042a307702d67f5f4 (diff)
downloadATCD-b8b18dfdbbf1b86da0ae273a46fe17f96e04163f.tar.gz
(hrtime_to_tv): in tv.usec calculation, moved the cast to long to
after the division by global_scale_factor_.
-rw-r--r--ace/High_Res_Timer.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/High_Res_Timer.i b/ace/High_Res_Timer.i
index 66524b26258..2f6c007dbc3 100644
--- a/ace/High_Res_Timer.i
+++ b/ace/High_Res_Timer.i
@@ -19,7 +19,7 @@ ACE_High_Res_Timer::hrtime_to_tv (ACE_Time_Value &tv,
// global_scale_factor
ACE_hrtime_t tmp = tv.sec ();
tmp *= ((ACE_UINT32) ACE_ONE_SECOND_IN_USECS * global_scale_factor_);
- tv.usec ((long) (hrt - tmp) / global_scale_factor_);
+ tv.usec ((long) ((hrt - tmp) / global_scale_factor_));
}