]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Fix evasion pruning condition
[stockfish] / src / evaluate.cpp
index 3680dd36fc30131867bfac8f588bd0ce30731636..2f8e63e5125e7a8f8feb67a90ec1acbb27f74e83 100644 (file)
@@ -870,7 +870,7 @@ namespace {
   }
 
 
-  // evaluate_passed_pawns() evaluates the passed pawns of the given color
+  // evaluate_passed_pawns_of_color() evaluates the passed pawns of the given color
 
   template<Color Us>
   void evaluate_passed_pawns_of_color(const Position& pos, int movesToGo[], Square pawnToGo[], EvalInfo& ei) {
@@ -961,7 +961,7 @@ namespace {
             qsq = relative_square(Us, make_square(square_file(s), RANK_8));
             d =  square_distance(s, qsq)
                - square_distance(theirKingSq, qsq)
-               + (Us != pos.side_to_move());
+               + int(Us != pos.side_to_move());
 
             if (d < 0)
             {