From cc4637b52b23ecd26b653de254bbd55b3ade2d3c Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Sun, 19 Apr 2026 07:17:57 +0200 Subject: [PATCH] Remove Redundant Cast in MovePicker closes https://github.com/official-stockfish/Stockfish/pull/6735 No functional change --- src/movepick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index f00115785..0c31761cb 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -167,7 +167,7 @@ ExtMove* MovePicker::score(const MoveList& ml) { m.value += (*continuationHistory[5])[pc][to]; // bonus for checks - m.value += (bool(pos.check_squares(pt) & to) && pos.see_ge(m, -75)) * 16384; + m.value += ((pos.check_squares(pt) & to) && pos.see_ge(m, -75)) * 16384; // penalty for moving to a square threatened by a lesser piece // or bonus for escaping an attack by a lesser piece.