mingw: squash another warning about a cast
[gitweb.git] / compat / win32 / pthread.h
index 8ad187344fd93e894a2f1cbfaa0fb59fd832de5b..d3dd872918183621f0f48fbd52f4e253cbf65cec 100644 (file)
@@ -77,7 +77,7 @@ extern pthread_t pthread_self(void);
 
 static inline int pthread_exit(void *ret)
 {
-       ExitThread((DWORD)ret);
+       ExitThread((DWORD)(intptr_t)ret);
 }
 
 typedef DWORD pthread_key_t;