Skip to content

Commit

Permalink
Fix compare function in previous patch
Browse files Browse the repository at this point in the history
Bench: 4012371
  • Loading branch information
snicolet committed Oct 5, 2019
1 parent 5d15686 commit 328bdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pawns.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 328bdd0

Please sign in to comment.