From: Eric Allman Date: Tue, 8 Jun 1982 13:19:14 +0000 (-0800) Subject: make bitset work even on an implicit cast to bool across subr calls X-Git-Tag: BSD-4_1c_2-Snapshot-Development~3198 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/9e7b5f612d1272b1769accdb72f2941c90ce71bd make bitset work even on an implicit cast to bool across subr calls SCCS-vsn: usr.sbin/sendmail/src/useful.h 3.10 --- diff --git a/usr/src/usr.sbin/sendmail/src/useful.h b/usr/src/usr.sbin/sendmail/src/useful.h index f802bf5377..887fe37350 100644 --- a/usr/src/usr.sbin/sendmail/src/useful.h +++ b/usr/src/usr.sbin/sendmail/src/useful.h @@ -1,7 +1,7 @@ /* ** USEFUL.H -- Some useful stuff. ** -** @(#)useful.h 3.9 %G% +** @(#)useful.h 3.10 %G% */ # ifndef makedev @@ -18,7 +18,7 @@ typedef char bool; # endif NULL /* bit hacking */ -# define bitset(bit, word) ((word) & (bit)) +# define bitset(bit, word) (((word) & (bit)) != 0) /* assertions */ # ifndef NASSERT