X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=bc26d4df3462ffe354085bc6c2fe00688b2739a6;hp=4c582e08d54645933dd2b8bd627938259faa2f5f;hb=67338e6f322b8f8ec0d897815e16a87937efc9b0;hpb=8307da0de77c9c7bbf7c56a7d9c8a688ff4dfb4e diff --git a/src/thread.cpp b/src/thread.cpp index 4c582e08..bc26d4df 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -176,10 +176,10 @@ void ThreadsManager::init() { threads[i].threadID = i; #if defined(_MSC_VER) - threads[i].handle = CreateThread(NULL, 0, start_routine, (LPVOID)&threads[i], 0, NULL); + threads[i].handle = CreateThread(NULL, 0, start_routine, &threads[i], 0, NULL); bool ok = (threads[i].handle != NULL); #else - bool ok = !pthread_create(&threads[i].handle, NULL, start_routine, (void*)&threads[i]); + bool ok = !pthread_create(&threads[i].handle, NULL, start_routine, &threads[i]); #endif if (!ok)