ruby-changes:50158
From: nobu <ko1@a...>
Date: Wed, 7 Feb 2018 15:49:38 +0900 (JST)
Subject: [ruby-changes:50158] nobu:r62276 (trunk): thread.c: int32_t instead of suseconds_t
nobu 2018-02-07 15:49:32 +0900 (Wed, 07 Feb 2018) New Revision: 62276 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62276 Log: thread.c: int32_t instead of suseconds_t * thread.c (timeval_for): cast to int32_t instead of suseconds_t, which is not defined non-POSIX platforms. Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 62275) +++ thread.c (revision 62276) @@ -225,7 +225,7 @@ timeval_for(struct timeval *tv, const st https://github.com/ruby/ruby/blob/trunk/thread.c#L225 { if (tv && ts) { tv->tv_sec = ts->tv_sec; - tv->tv_usec = (suseconds_t)(ts->tv_nsec / 1000); + tv->tv_usec = (int32_t)(ts->tv_nsec / 1000); /* 10**6 < 2**(32-1) */ return tv; } return 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/