]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Some small changes
[stockfish] / src / pawns.cpp
index 24abec0c4f20cc09c9d1a72d403b10c0fba824f2..7fcdded6375b92f72beb6db6dd556775d6a44770 100644 (file)
@@ -151,7 +151,7 @@ namespace {
         // not attacked more times than defended.
         if (   !(stoppers ^ lever ^ leverPush)
             && !(ourPawns & forward_file_bb(Us, s))
-            && popcount(supported) >= popcount(lever)
+            && popcount(supported) >= popcount(lever) - 1
             && popcount(phalanx)   >= popcount(leverPush))
             e->passedPawns[Us] |= s;