From c8a231275555289cbfe215e7a4f49930eff691f2 Mon Sep 17 00:00:00 2001 From: John Boyle Date: Thu, 8 Jun 2017 08:55:22 -0700 Subject: [PATCH] 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. --- misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.c b/misc.c index 6b9e761..cfca544 100644 --- a/misc.c +++ b/misc.c @@ -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) -- 2.31.1