]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Big renaming of move's helpers
[stockfish] / src / thread.cpp
index 4c582e08d54645933dd2b8bd627938259faa2f5f..bc26d4df3462ffe354085bc6c2fe00688b2739a6 100644 (file)
@@ -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)