From 57c7dfd8fed5efd2d66f0b990941ade7382fa012 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Sun, 18 Jun 1995 14:59:32 +0000 Subject: MAJ apres le changement de representation des constructeurs constants (reste a tester). git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@48 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/unix/select.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'otherlibs/unix/select.c') diff --git a/otherlibs/unix/select.c b/otherlibs/unix/select.c index 7015cdb75..14d063706 100644 --- a/otherlibs/unix/select.c +++ b/otherlibs/unix/select.c @@ -25,7 +25,7 @@ static void fdlist_to_fdset(fdlist, fdset) { value l; FD_ZERO(fdset); - for (l = fdlist; Tag_val(l) == 1; l = Field(l, 1)) { + for (l = fdlist; l != Val_int(0); l = Field(l, 1)) { FD_SET(Int_val(Field(l, 0)), fdset); } } @@ -36,10 +36,10 @@ static value fdset_to_fdlist(fdset) int i; Push_roots(roots, 1) #define res roots[0] - res = Atom(0); + res = Val_int(0); for (i = FD_SETSIZE - 1; i >= 0; i--) { if (FD_ISSET(i, fdset)) { - value newres = alloc(2, 1); + value newres = alloc(2, 0); Field(newres, 0) = Val_int(i); Field(newres, 1) = res; res = newres; -- cgit v1.2.3-70-g09d2