]> git.sesse.net Git - stockfish/blobdiff - src/endgame.cpp
Use compiler name lookup to simplify code
[stockfish] / src / endgame.cpp
index 90898e8341a58987b46cb0433018cb4d587484e8..3258c6fc18ac02af42fbd474dbacd699a2de99dd 100644 (file)
@@ -378,7 +378,7 @@ Value EvaluationFunction<KBBKN>::apply(const Position& pos) {
   result += Value(square_distance(bksq, nsq) * 32);
 
   // Bonus for restricting the knight's mobility
-  result += Value((8 - count_1s_max_15<false>(pos.piece_attacks<KNIGHT>(nsq))) * 8);
+  result += Value((8 - count_1s_max_15(pos.piece_attacks<KNIGHT>(nsq))) * 8);
 
   return (strongerSide == pos.side_to_move() ? result : -result);
 }