1
0
Fork 0
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:
nobu 2013-08-16 08:15:09 +00:00
parent 3ea0a5bd3e
commit d51138ddad

View file

@ -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;
}