diff options
Diffstat (limited to 'src/threadengines')
-rw-r--r-- | src/threadengines/threadengine_pthread.cpp | 2 | ||||
-rw-r--r-- | src/threadengines/threadengine_win32.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/threadengines/threadengine_pthread.cpp b/src/threadengines/threadengine_pthread.cpp index 904efa0c9..6e32634c5 100644 --- a/src/threadengines/threadengine_pthread.cpp +++ b/src/threadengines/threadengine_pthread.cpp @@ -29,7 +29,7 @@ static void* entry_point(void* parameter) sigaddset(&set, SIGPIPE); pthread_sigmask(SIG_BLOCK, &set, NULL); - Thread* pt = reinterpret_cast<Thread*>(parameter); + Thread* pt = static_cast<Thread*>(parameter); pt->Run(); return parameter; } diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp index 2676bc6f6..4bac4f5dc 100644 --- a/src/threadengines/threadengine_win32.cpp +++ b/src/threadengines/threadengine_win32.cpp @@ -40,7 +40,7 @@ ThreadEngine::~ThreadEngine() DWORD WINAPI ThreadEngine::Entry(void* parameter) { - Thread* pt = reinterpret_cast<Thread*>(parameter); + Thread* pt = static_cast<Thread*>(parameter); pt->Run(); return 0; } |