X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=62ff37641c7cb013fb3376d795382ca4d1aaae9f;hp=344cfb794782d7a559194ccf7007645c2bc63bd2;hb=6f48367094082ad03526f6ffe24d7c3873ff7386;hpb=83a574ff271ec5924976b48cf65ac62278f87558 diff --git a/src/thread.cpp b/src/thread.cpp index 344cfb79..62ff3764 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -119,7 +119,7 @@ bool Thread::available_to(const Thread* master) const { // Make a local copy to be sure it doesn't become zero under our feet while // testing next condition and so leading to an out of bounds access. - int size = splitPointsSize; + const int size = splitPointsSize; // No split points means that the thread is available as a slave for any // other thread otherwise apply the "helpful master" concept if possible.