diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-26 23:48:31 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-26 23:48:31 +0000 |
commit | e65e24bd2747203862e6773d7c74996d58e92f4e (patch) | |
tree | 86ca49e1e142c42ca9dd69f04f11bcc44adcf787 /thread.c | |
parent | 542190ce584fe2f0923227e591bfe2b8880dad42 (diff) | |
download | ruby-e65e24bd2747203862e6773d7c74996d58e92f4e.tar.gz |
* thread.c (ppoll): typo bug fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2759,14 +2759,14 @@ int ppoll(struct pollfd *fds, nfds_t nfds, timeout_ms = -1; else { tmp = ts->tv_sec * 1000; - tmp2 = tv->tv_nsec / (1000 * 1000); + tmp2 = ts->tv_nsec / (1000 * 1000); if (TIMET_MAX - tmp < tmp2) timeout_ms = -1; else timeout_ms = tmp + tmp2; } } else - timeout = -1; + timeout_ms = -1; return poll(fds, nfds, timeout_ms); } |