diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2003-01-07 16:16:44 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2003-01-07 16:16:44 +0000 |
commit | 1577a798071d5e5879ae062070a66a5b798cc562 (patch) | |
tree | d84c0fc250530f7ba6701cc479487a516c8936f0 /otherlibs/win32unix/select.c | |
parent | 0bca05af096eacc483038545252d4209644dd85a (diff) |
Mauvaise definition de la variable tm dans unix_select
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5377 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/select.c')
-rw-r--r-- | otherlibs/win32unix/select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/win32unix/select.c b/otherlibs/win32unix/select.c index 44930f7a7..4fa8e788b 100644 --- a/otherlibs/win32unix/select.c +++ b/otherlibs/win32unix/select.c @@ -57,6 +57,7 @@ CAMLprim value unix_select(value readfds, value writefds, value exceptfds, value Begin_roots3 (readfds, writefds, exceptfds) Begin_roots3 (read_list, write_list, except_list) + tm = Double_val(timeout); if (readfds == Val_int(0) && writefds == Val_int(0) && exceptfds == Val_int(0)) { @@ -70,7 +71,6 @@ CAMLprim value unix_select(value readfds, value writefds, value exceptfds, value fdlist_to_fdset(readfds, &read); fdlist_to_fdset(writefds, &write); fdlist_to_fdset(exceptfds, &except); - tm = Double_val(timeout); if (tm < 0.0) tvp = (struct timeval *) NULL; else { |