mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 20:57:10 +00:00
Remove Redundant Cast in MovePicker
closes https://github.com/official-stockfish/Stockfish/pull/6735 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
95f3680080
commit
cc4637b52b
+1
-1
@@ -167,7 +167,7 @@ ExtMove* MovePicker::score(const MoveList<Type>& 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.
|
||||
|
||||
Reference in New Issue
Block a user