Correct the definition of SETBIT.

The semantics were first changed in aef60929 (technically broken
in that commit as well).  Luckily, it seems not to be used much.
This commit is contained in:
John Boyle 2017-06-08 08:55:22 -07:00 committed by Eric S. Raymond
parent ebfe3e49fa
commit c8a2312755

2
misc.c
View file

@ -606,7 +606,7 @@ long ATDWRF(long where)
long SETBIT(long bit) long SETBIT(long bit)
/* Returns 2**bit for use in constructing bit-masks. */ /* Returns 2**bit for use in constructing bit-masks. */
{ {
return(2 << bit); return(1 << bit);
} }
bool TSTBIT(long mask, int bit) bool TSTBIT(long mask, int bit)