From 50840311decf32239980026ee8b3778469556353 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 27 Aug 2018 05:49:41 +0000 Subject: hrtime.h: missing paren git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hrtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hrtime.h') diff --git a/hrtime.h b/hrtime.h index 68e478e..1685ed8 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; -- cgit v1.1