aboutsummaryrefslogtreecommitdiffstats
path: root/hrtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'hrtime.h')
-rw-r--r--hrtime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hrtime.h b/hrtime.h
index 68e478e7af..1685ed8141 100644
--- a/hrtime.h
+++ b/hrtime.h
@@ -157,7 +157,7 @@ static inline struct timeval *
rb_hrtime2timeval(struct timeval *tv, const rb_hrtime_t *hrt)
{
if (hrt) {
- tv->tv_sec = (time_t)*hrt / RB_HRTIME_PER_SEC;
+ tv->tv_sec = (time_t)(*hrt / RB_HRTIME_PER_SEC);
tv->tv_usec = (int32_t)((*hrt % RB_HRTIME_PER_SEC)/RB_HRTIME_PER_USEC);
return tv;