summaryrefslogtreecommitdiff
path: root/common/os_thread.hpp
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-01-23 15:00:47 +0000
committerJosé Fonseca <jfonseca@vmware.com>2013-01-23 15:00:47 +0000
commit93d51c3065260cdb088f33d3e6d5bdfb4707c1a9 (patch)
tree31b22c0e5b8004dc6566ff92a1150ad780ce3b26 /common/os_thread.hpp
parente8fbc5deea39f8eac43cf5f1a6033f97e0484297 (diff)
os: Cast pthread_create's arg parameter.
Diffstat (limited to 'common/os_thread.hpp')
-rw-r--r--common/os_thread.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/os_thread.hpp b/common/os_thread.hpp
index 9dc656ee..2c3f7325 100644
--- a/common/os_thread.hpp
+++ b/common/os_thread.hpp
@@ -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
}