mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Fix compare function in previous patch
Bench: 4012371
This commit is contained in:
@@ -231,7 +231,7 @@ Score Entry::do_king_safety(const Position& pos) {
|
|||||||
Square ksq = pos.square<KING>(Us);
|
Square ksq = pos.square<KING>(Us);
|
||||||
kingSquares[Us] = ksq;
|
kingSquares[Us] = ksq;
|
||||||
castlingRights[Us] = pos.castling_rights(Us);
|
castlingRights[Us] = pos.castling_rights(Us);
|
||||||
auto compare = [](Score a, Score b) { return mg_value(a) <= mg_value(b); };
|
auto compare = [](Score a, Score b) { return mg_value(a) < mg_value(b); };
|
||||||
|
|
||||||
Score shelter = evaluate_shelter<Us>(pos, ksq);
|
Score shelter = evaluate_shelter<Us>(pos, ksq);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user