diff --git a/src/search.cpp b/src/search.cpp index 450010a9..344a0093 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -385,11 +385,11 @@ void Thread::search(bool isMainThread) { ++depth; for (Thread* th : Threads) if (th != this && th->depth <= depth) - th->depth = depth + Depth(3 * log(1 + th->idx)); + th->depth = depth + Depth(int(3 * log(1 + th->idx))); } else // This can cause a thread to search with the same depth for many iterations - depth = Threads.main()->depth + Depth(3 * log(1 + this->idx)); + depth = Threads.main()->depth + Depth(int(3 * log(1 + this->idx))); if (depth >= DEPTH_MAX || Signals.stop || (Limits.depth && depth > Limits.depth)) break;