]> git.sesse.net Git - stockfish/commitdiff
Fix compare function in previous patch
authorStéphane Nicolet <cassio@free.fr>
Sat, 5 Oct 2019 09:15:24 +0000 (11:15 +0200)
committerStéphane Nicolet <cassio@free.fr>
Sat, 5 Oct 2019 09:15:24 +0000 (11:15 +0200)
Bench: 4012371

src/pawns.cpp

index bc1cf38af9c2706f54b793967866f632aa5c65c0..1e5b4f43b9a6560b61d3f496e7b40ed226c8538d 100644 (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);
   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);
 
 
   Score shelter = evaluate_shelter<Us>(pos, ksq);