From: Stéphane Nicolet Date: Sat, 5 Oct 2019 09:15:24 +0000 (+0200) Subject: Fix compare function in previous patch X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=328bdd0947ea7903ee1061c8eb60bc3121a4eb19;ds=sidebyside Fix compare function in previous patch Bench: 4012371 --- diff --git a/src/pawns.cpp b/src/pawns.cpp index bc1cf38a..1e5b4f43 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -231,7 +231,7 @@ Score Entry::do_king_safety(const Position& pos) { Square ksq = pos.square(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(pos, ksq);