mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (subtruct): check tv_sec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c0e0e87b45
commit
3bd735314d
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Sep 23 19:50:24 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (subtruct): check tv_sec.
|
||||
|
||||
Tue Sep 23 19:30:41 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (filetime_to_timeval): new function, split from
|
||||
|
|
|
@ -2172,6 +2172,9 @@ do_select(int nfds, fd_set *rd, fd_set *wr, fd_set *ex,
|
|||
static inline int
|
||||
subtract(struct timeval *rest, const struct timeval *wait)
|
||||
{
|
||||
if (rest->tv_sec < wait->tv_sec) {
|
||||
return 0;
|
||||
}
|
||||
while (rest->tv_usec < wait->tv_usec) {
|
||||
if (rest->tv_sec <= wait->tv_sec) {
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue