// 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)
score<QUIETS>();
partial_insertion_sort(cur, endMoves,
- depth < 3 * ONE_PLY ? VALUE_ZERO : Value(INT_MIN));
+ depth < 3 * ONE_PLY ? 0 : INT_MIN);
++stage;
case QUIET: