X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=9a6bd86386807019e73d2eaba746fb6e3a0d0b44;hp=85d702c4d4c410e0eb4e5eb045977c6d891e5114;hb=187a9fe5e7b8349b9eacf23e11cb801a32bb6b12;hpb=83a574ff271ec5924976b48cf65ac62278f87558 diff --git a/src/search.cpp b/src/search.cpp index 85d702c4..9a6bd863 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -870,8 +870,9 @@ moves_loop: // When in check and at SpNode search starts from here // Decrease reduction for moves that escape a capture if ( ss->reduction + && type_of(move) == NORMAL && type_of(pos.piece_on(to_sq(move))) != PAWN - && pos.see_sign(make_move(to_sq(move), from_sq(move))) < 0) + && pos.see(make_move(to_sq(move), from_sq(move))) < 0) ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY); Depth d = std::max(newDepth - ss->reduction, ONE_PLY); @@ -1552,7 +1553,7 @@ void Thread::idle_loop() { if (Threads.size() > 2) for (size_t i = 0; i < Threads.size(); ++i) { - int size = Threads[i]->splitPointsSize; // Local copy + const int size = Threads[i]->splitPointsSize; // Local copy sp = size ? &Threads[i]->splitPoints[size - 1] : NULL; if ( sp