]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Replace clear_bit() with xor_bit()
[stockfish] / src / evaluate.cpp
index 32469a916e8cc59b052ac9e3d1bca2f83c74900e..4419a64bedab3e6f586fc6386e1e373e01b2cd33 100644 (file)
@@ -18,7 +18,6 @@
 */
 
 #include <cassert>
-#include <iostream>
 #include <iomanip>
 #include <sstream>
 #include <algorithm>
@@ -945,7 +944,7 @@ namespace {
         // Check if (without even considering any obstacles) we're too far away or doubled
         if (   pliesToQueen[winnerSide] + 3 <= pliesToGo
             || (squares_in_front_of(loserSide, s) & pos.pieces(PAWN, loserSide)))
-            clear_bit(&candidates, s);
+            xor_bit(&candidates, s);
     }
 
     // If any candidate is already a passed pawn it _may_ promote in time. We give up.