1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Fix a MSVC warning

warning C4805: '|' : unsafe mix of type 'Bitboard' and type 'bool' in operation

No functional change.
This commit is contained in:
Marco Costalba 2015-01-31 10:19:00 +01:00
parent a3b4e9e23c
commit a7592e69d7

View file

@ -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