]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/common/threads.c
fix some more warnings
[xonotic/netradiant.git] / tools / quake3 / common / threads.c
index a486abafaea5006e169ece64f156579523260734..7f404a4f03da537b6b90f33c09647ca65139f2a3 100644 (file)
@@ -565,7 +565,7 @@ void RunThreadsOn (int workcnt, qboolean showpacifier, void(*func)(int))
     for (i=0 ; i<numthreads ; i++)
     {
       /* Default pthread attributes: joinable & non-realtime scheduling */
-      if(pthread_create(&work_threads[i], &attr, (void*)func, (void*)i) != 0)
+      if(pthread_create(&work_threads[i], &attr, (void*)func, (void*)(size_t)i) != 0)
         Error("pthread_create failed");
     }
     for (i=0 ; i<numthreads ; i++)