X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=12ed75997dfaa500beccd424ef2d86529444bc1b;hp=a04766533b953f27798b7665c4a1d99c76bc4f82;hb=950c8436edc50857b83eb3e0cbaca06407764655;hpb=8d47caa16ec9d2efad44f2638ce7d7637216d281 diff --git a/src/search.cpp b/src/search.cpp index a0476653..12ed7599 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1594,7 +1594,7 @@ void Thread::idle_loop() { for (size_t i = 0; i < Threads.size(); ++i) { - const int size = Threads[i]->splitPointsSize; // Local copy + const size_t size = Threads[i]->splitPointsSize; // Local copy sp = size ? &Threads[i]->splitPoints[size - 1] : NULL; if ( sp @@ -1705,7 +1705,7 @@ void check_time() { // Loop across all split points and sum accumulated SplitPoint nodes plus // all the currently active positions nodes. for (size_t i = 0; i < Threads.size(); ++i) - for (int j = 0; j < Threads[i]->splitPointsSize; ++j) + for (size_t j = 0; j < Threads[i]->splitPointsSize; ++j) { SplitPoint& sp = Threads[i]->splitPoints[j];