From 93d51c3065260cdb088f33d3e6d5bdfb4707c1a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 23 Jan 2013 15:00:47 +0000 Subject: [PATCH] os: Cast pthread_create's arg parameter. --- common/os_thread.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/os_thread.hpp b/common/os_thread.hpp index 9dc656e..2c3f732 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 } -- 2.43.0