diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-09 02:06:49 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-09 02:06:49 +0000 |
commit | b10c3136b0163536a679b10fecbc2992f3b5fa64 (patch) | |
tree | e4dd5a35acb5667f8d6abe81b273070e08e32611 /thread.c | |
parent | e120e375774f9cb3f45e3275f03bfdf06c6b2a6e (diff) | |
download | ruby-b10c3136b0163536a679b10fecbc2992f3b5fa64.tar.gz |
* thread.c (do_select): fix cast, tv_sec is time_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2570,7 +2570,7 @@ do_select(int n, rb_fdset_t *read, rb_fdset_t *write, rb_fdset_t *except, if (timeout) { double d = limit - timeofday(); - wait_rest.tv_sec = (unsigned int)d; + wait_rest.tv_sec = (time_t)d; wait_rest.tv_usec = (int)((d-(double)wait_rest.tv_sec)*1e6); if (wait_rest.tv_sec < 0) wait_rest.tv_sec = 0; if (wait_rest.tv_usec < 0) wait_rest.tv_usec = 0; |