projects
/
gnushogi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix integer overflow caused by bad use of binary operator.
[gnushogi.git]
/
gnushogi
/
eval.c
diff --git
a/gnushogi/eval.c
b/gnushogi/eval.c
index
3f44d9b
..
d2dcfab
100644
(file)
--- a/
gnushogi/eval.c
+++ b/
gnushogi/eval.c
@@
-1002,7
+1002,7
@@
BRLscan(short sq, short *mob)
{ \
if (color[u] != c2) \
{ \
- if ((atk1[u] == 0) || ((atk2[u] & CNT_MASK) > 1)) \
+ if ((atk1[u] == 0) || ((atk2[u] & CNT_MASK) != 0)) \
{ \
++cnt; \
} \