mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Fix compile on icc
Error is: a value of type "int" cannot be assigned to an entity of type "Value" Also retire the now unused squares_of_color() function. No functional change.
This commit is contained in:
@@ -149,7 +149,7 @@ void MovePicker::score<CAPTURES>() {
|
||||
// calls in case we get a cutoff.
|
||||
for (auto& m : *this)
|
||||
m.value = PieceValue[MG][pos.piece_on(to_sq(m))]
|
||||
- 200 * relative_rank(pos.side_to_move(), to_sq(m));
|
||||
- Value(200 * relative_rank(pos.side_to_move(), to_sq(m)));
|
||||
}
|
||||
|
||||
template<>
|
||||
|
||||
Reference in New Issue
Block a user