]> git.sesse.net Git - stockfish/commitdiff
Fix a MSVC warning
authorMarco Costalba <mcostalba@gmail.com>
Sat, 31 Jan 2015 09:19:00 +0000 (10:19 +0100)
committerMarco 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

index 798bc0a070319dc846986535e4480d9e3442d349..032b637e6a7680408ea039d4a591bc9cc2f417e0 100644 (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