]> git.cworth.org Git - apitrace/blobdiff - common/os_thread.hpp
os: Cast pthread_create's arg parameter.
[apitrace] / common / os_thread.hpp
index 9dc656eedce84798480de480b3fa1747e1da7c9b..2c3f73250893e9beba24bc84781acedf8f1e4775 100644 (file)
@@ -312,7 +312,7 @@ namespace os {
             DWORD id = 0;
             _native_handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)f, (LPVOID)arg, 0, &id);
 #else
-            pthread_create(&_native_handle, NULL, ( void *(*) (void *))f, arg);
+            pthread_create(&_native_handle, NULL, (void *(*) (void *))f, (void *)arg);
 #endif
         }