]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Fix for Alpha-Linux compiler or FD_ISSET macro does not appear to evaluate v40pl2-rjc7
authorRobert Colquhoun <rjc@trump.net.au>
Thu, 20 May 1999 06:33:09 +0000 (06:33 +0000)
committerRobert Colquhoun <rjc@trump.net.au>
Thu, 20 May 1999 06:33:09 +0000 (06:33 +0000)
correctly.  Added brackets around the comparison to force evaluation.

Thanks to Simon <iahnl@iah.nl> for finding and fixing this.

util/Dispatcher.c++

index 6bd0b0327caf685595fcb68fa431dd96d74cca45..b0b6645c816616ee3cd96c9ef136ffa4de0ccf36 100644 (file)
@@ -67,7 +67,7 @@ FdMask::FdMask() {
 void FdMask::zero() { memset(this, 0, sizeof(FdMask)); }
 void FdMask::setBit(int fd) { FD_SET(fd,this); }
 void FdMask::clrBit(int fd) { FD_CLR(fd,this); }
-fxBool FdMask::isSet(int fd) const { return FD_ISSET(fd,this) != 0; }
+fxBool FdMask::isSet(int fd) const { return (FD_ISSET(fd,this) != 0); }
 
 fxBool FdMask::anySet() const {
     const int mskcnt = howmany(FD_SETSIZE,NFDBITS);