]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Use bool(Bitboard b) instead of !!b (#1321)
[stockfish] / src / pawns.cpp
index 9099875420f821bd73b795cd76e4f449a02df9ec..a031534d3a4fd9b75d44e8c69ac97f99d8ef9c28 100644 (file)
@@ -174,7 +174,7 @@ namespace {
 
         // Score this pawn
         if (supported | phalanx)
-            score += Connected[opposed][!!phalanx][popcount(supported)][relative_rank(Us, s)];
+            score += Connected[opposed][bool(phalanx)][popcount(supported)][relative_rank(Us, s)];
 
         else if (!neighbours)
             score -= Isolated, e->weakUnopposed[Us] += !opposed;