1
0
Fork 0

Fix compare function in previous patch

Bench: 4012371
pull/2348/head
Stéphane Nicolet 2019-10-05 11:15:24 +02:00
parent 5d1568632c
commit 328bdd0947
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ Score Entry::do_king_safety(const Position& pos) {
Square ksq = pos.square<KING>(Us);
kingSquares[Us] = ksq;
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);