* win32/win32.c (subtruct): check tv_sec. reported by ko1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8b54d5812c
commit
743765cd3b
|
@ -1,3 +1,7 @@
|
|||
Tue Sep 23 19:38:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (subtruct): check tv_sec. reported by ko1.
|
||||
|
||||
Tue Sep 23 19:21:03 2008 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* complex.c (nucomp_s_canonicalize_internal): does no apply
|
||||
|
|
|
@ -2157,6 +2157,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…
Reference in New Issue