projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebfe3e4
)
Correct the definition of SETBIT.
author
John Boyle
<johnthescavenger@gmail.com>
Thu, 8 Jun 2017 15:55:22 +0000
(08:55 -0700)
committer
Eric S. Raymond
<esr@thyrsus.com>
Fri, 9 Jun 2017 02:50:48 +0000
(22:50 -0400)
The semantics were first changed in
aef60929
(technically broken
in that commit as well). Luckily, it seems not to be used much.
misc.c
patch
|
blob
|
history
diff --git
a/misc.c
b/misc.c
index 6b9e761d1b0ecd9375a66390c2214e92f68e1654..cfca544393d7c064baa504efae952c2e8c8d8928 100644
(file)
--- 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)