[Issue 5209] posix/sys/select.d: FD_ISSET function should return bool

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 21 13:35:01 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5209


Iain Buclaw <ibuclaw at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical


--- Comment #2 from Iain Buclaw <ibuclaw at ubuntu.com> 2010-12-21 13:33:04 PST ---
Bumping priority:

It appears *ONE* of the functions has been changed to a boolean. But what's
utterly worse is that:


extern (D) bool FD_ISSET( int fd, fd_set* fdset )
{
    return (fdset.fds_bits[__FDELT( fd )] & __FDMASK( fd )) == 0;
}

should be "!= 0"

Regards

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list