This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: weird egcs bug
- To: Greg Bacon <gbacon at cs dot uah dot edu>
- Subject: Re: weird egcs bug
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 16 Mar 2000 17:52:36 -0300
- Cc: egcs-bugs at egcs dot cygnus dot com
- References: <200003160135.TAA02702@ruby.itsc.uah.edu>
On Mar 15, 2000, gbacon@itsc.uah.edu (Greg Bacon) wrote:
> maxfd = fd1 > fd2 ? fd1 : fd2;
> maxfd++;
[snip]
> retval = select(maxfd+1, &rdrs, NULL, NULL, NULL);
Isn't it wrong that maxfd is both incremented and added 1?
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me