mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
hrtime.h: missing paren
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
995bc9233f
commit
50840311de
1 changed files with 1 additions and 1 deletions
2
hrtime.h
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue