mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
process.c: downcast
* process.c (rb_clock_gettime): downcast for I32 environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3ea0a5bd3e
commit
d51138ddad
1 changed files with 2 additions and 1 deletions
|
@ -6759,7 +6759,8 @@ rb_clock_gettime(int argc, VALUE *argv)
|
|||
}
|
||||
|
||||
t = t * sTimebaseInfo.numer / sTimebaseInfo.denom;
|
||||
ts.tv_sec = t / 1000000000;
|
||||
/* TODO: time_t overflow */
|
||||
ts.tv_sec = (time_t)(t / 1000000000);
|
||||
ts.tv_nsec = t % 1000000000;
|
||||
goto success;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue