X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=fff523c39e48e538099e3a169c7c9491c59154b5;hp=79813013d989408a123d2177ce26a611482fd10b;hb=9a3fc4d3fb81e5f517ecde5dad8aabf55fb2bd22;hpb=e81108a85519dedcb6d0ed8574f35a0b1c90ae97 diff --git a/src/search.cpp b/src/search.cpp index 79813013..fff523c3 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1713,7 +1713,7 @@ namespace { // Detect blocking evasions that are candidate to be pruned evasionPrunable = isCheck - && bestValue != -VALUE_INFINITE + && bestValue > value_mated_in(PLY_MAX) && !pos.move_is_capture(move) && pos.type_of_piece_on(move_from(move)) != KING && !pos.can_castle(pos.side_to_move()); @@ -2774,7 +2774,7 @@ namespace { } // Wait until the thread has finished launching and is gone to sleep - while (threads[i].state != THREAD_SLEEPING); + while (threads[i].state != THREAD_SLEEPING) {} } } @@ -2815,7 +2815,7 @@ namespace { SplitPoint* sp; - for (sp = threads[threadID].splitPoint; sp && !sp->stopRequest; sp = sp->parent); + for (sp = threads[threadID].splitPoint; sp && !sp->stopRequest; sp = sp->parent) {} return sp != NULL; }