X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.cpp;h=796649ab02d9a821d99cb70ac61650f0152f5bd4;hp=8a4a8b8f75642b7997f4574b6485f8877a54d721;hb=9da3b44ddc7bc9ea7094b91663cbc0f8319c46be;hpb=ced29248c93de7fc5a4e284807f8f052006e647c diff --git a/src/movepick.cpp b/src/movepick.cpp index 8a4a8b8f..796649ab 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -37,7 +37,7 @@ namespace { // An insertion sort, which sorts moves in descending order up to and including a given limit. // The order of moves smaller than the limit is left unspecified. // To keep the implementation simple, *begin is always included in the list of sorted moves. - void partial_insertion_sort(ExtMove* begin, ExtMove* end, Value limit) + void partial_insertion_sort(ExtMove* begin, ExtMove* end, int limit) { for (ExtMove *sortedEnd = begin + 1, *p = begin + 1; p < end; ++p) if (p->value >= limit) @@ -243,7 +243,7 @@ Move MovePicker::next_move(bool skipQuiets) { score(); partial_insertion_sort(cur, endMoves, - depth < 3 * ONE_PLY ? VALUE_ZERO : Value(INT_MIN)); + depth < 3 * ONE_PLY ? 0 : INT_MIN); ++stage; case QUIET: