make bitset work even on an implicit cast to bool across subr calls
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 8 Jun 1982 13:19:14 +0000 (05:19 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 8 Jun 1982 13:19:14 +0000 (05:19 -0800)
SCCS-vsn: usr.sbin/sendmail/src/useful.h 3.10

usr/src/usr.sbin/sendmail/src/useful.h

index f802bf5..887fe37 100644 (file)
@@ -1,7 +1,7 @@
 /*
 **  USEFUL.H -- Some useful stuff.
 **
 /*
 **  USEFUL.H -- Some useful stuff.
 **
-**     @(#)useful.h    3.            %G%
+**     @(#)useful.h    3.10            %G%
 */
 
 # ifndef makedev
 */
 
 # ifndef makedev
@@ -18,7 +18,7 @@ typedef char  bool;
 # endif NULL
 
 /* bit hacking */
 # endif NULL
 
 /* bit hacking */
-# define bitset(bit, word)     ((word) & (bit))
+# define bitset(bit, word)     (((word) & (bit)) != 0)
 
 /* assertions */
 # ifndef NASSERT
 
 /* assertions */
 # ifndef NASSERT