projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a3b4e9e
)
Fix a MSVC warning
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 31 Jan 2015 09:19:00 +0000 (10:19 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 31 Jan 2015 09:19:00 +0000 (10:19 +0100)
warning C4805: '|' : unsafe mix of type 'Bitboard' and type 'bool' in operation
No functional change.
src/pawns.cpp
patch
|
blob
|
history
diff --git
a/src/pawns.cpp
b/src/pawns.cpp
index
798bc0a
..
032b637
100644
(file)
--- a/
src/pawns.cpp
+++ b/
src/pawns.cpp
@@
-147,7
+147,7
@@
namespace {
// If the pawn is passed, isolated, connected or a lever it cannot be
// backward. If there are friendly pawns behind on adjacent files
// it cannot be backward either.
- if ( (passed | isolated | connected | lever)
+ if ( (passed | isolated | lever | connected)
|| (ourPawns & pawn_attack_span(Them, s)))
backward = false;
else