]> git.cworth.org Git - apitrace/commitdiff
os: Cast pthread_create's arg parameter.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 23 Jan 2013 15:00:47 +0000 (15:00 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 23 Jan 2013 15:00:47 +0000 (15:00 +0000)
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
         }