X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=c692baf5a72e3db774b2e728f25e1c91e93b3b31;hp=2351dd17fbb87043fdd88b1888ea7fba3ad11d16;hb=3a558a3d8b1400e0bafe0ba5c368c65542462a36;hpb=29fb38976036d6691f6cbdf8990245ed74d79be2 diff --git a/src/search.cpp b/src/search.cpp index 2351dd17..c692baf5 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1440,7 +1440,7 @@ namespace { // Loop through all legal moves until no moves remain or a beta cutoff occurs // Initialize a MovePicker object for the current position - MovePicker mp = MovePicker(pos, ttMove, depth, H, &ss[ply]); + MovePicker mp = MovePicker(pos, ttMove, depth, H, &ss[ply], beta); CheckInfo ci(pos); while ( bestValue < beta @@ -2593,7 +2593,7 @@ namespace { DWORD WINAPI init_thread(LPVOID threadID) { TM.idle_loop(*(int*)threadID, NULL); - return NULL; + return 0; } #endif @@ -2999,9 +2999,6 @@ namespace { if (ActiveThreads == 1) return; - for (int i = 1; i < ActiveThreads; i++) - assert(threads[i].state == THREAD_SLEEPING); - #if !defined(_MSC_VER) pthread_mutex_lock(&WaitLock); pthread_cond_broadcast(&WaitCond);