mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 03:26:24 +08: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user