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 NHOrus
parent 30eac2f991
commit 049eb800b1

2
misc.c
View file

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