diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-27 05:49:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-27 05:49:41 +0000 |
commit | eba9c8b89fcf5ff541951b60b541e60f74729e35 (patch) | |
tree | e925f89621444fb9147c485e17eb354557046805 /hrtime.h | |
parent | 26d63d60de5cbc7621d1d9bac4c6a293907fa964 (diff) | |
download | ruby-eba9c8b89fcf5ff541951b60b541e60f74729e35.tar.gz |
hrtime.h: missing paren
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hrtime.h')
-rw-r--r-- | hrtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |