ruby-changes:52345
From: nobu <ko1@a...>
Date: Mon, 27 Aug 2018 14:49:47 +0900 (JST)
Subject: [ruby-changes:52345] nobu:r64553 (trunk): hrtime.h: missing paren
nobu 2018-08-27 14:49:41 +0900 (Mon, 27 Aug 2018) New Revision: 64553 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64553 Log: hrtime.h: missing paren Modified files: trunk/hrtime.h Index: hrtime.h =================================================================== --- hrtime.h (revision 64552) +++ hrtime.h (revision 64553) @@ -157,7 +157,7 @@ static inline struct timeval * https://github.com/ruby/ruby/blob/trunk/hrtime.h#L157 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/