ruby-changes:30504
From: nobu <ko1@a...>
Date: Fri, 16 Aug 2013 17:15:17 +0900 (JST)
Subject: [ruby-changes:30504] nobu:r42583 (trunk): process.c: downcast
nobu 2013-08-16 17:15:09 +0900 (Fri, 16 Aug 2013) New Revision: 42583 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42583 Log: process.c: downcast * process.c (rb_clock_gettime): downcast for I32 environment. Modified files: trunk/process.c Index: process.c =================================================================== --- process.c (revision 42582) +++ process.c (revision 42583) @@ -6759,7 +6759,8 @@ rb_clock_gettime(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L6759 } 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/