Skip to content

Commit

Permalink
Fix a MSVC warning
Browse files Browse the repository at this point in the history
warning C4805: '|' : unsafe mix of type 'Bitboard' and type 'bool' in operation

No functional change.
  • Loading branch information
mcostalba committed Jan 31, 2015
1 parent a3b4e9e commit a7592e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pawns.cpp
Expand Up @@ -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
Expand Down

0 comments on commit a7592e6

Please sign in to comment.