diff --git a/src/search.cpp b/src/search.cpp index 8fdaca7cff0..04c4a076e4f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -490,6 +490,7 @@ void Thread::search() { } mainThread->iterValue[iterIdx] = bestValue; + // Cycle the value of iterIdx among 0, 1, 2, and 3 by keeping only the last bit. iterIdx = (iterIdx + 1) & 3; }