From e98321a55a51bfce084ba50f2942cbdacafcb1bf Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Thu, 21 Dec 2017 22:08:51 +0100 Subject: [PATCH] Code cleanup --- src/threaddep/thread.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/threaddep/thread.h b/src/threaddep/thread.h index 3280885d..07da7f92 100644 --- a/src/threaddep/thread.h +++ b/src/threaddep/thread.h @@ -58,7 +58,7 @@ STATIC_INLINE int uae_start_thread_fast (void *(*f) (void *), void *arg, uae_thr #elif USE_SDL2 STATIC_INLINE uae_thread_id uae_start_thread(const TCHAR* name, void*(*f)(void*), void* arg, uae_thread_id* foo) { - uae_thread_id id = SDL_CreateThread ((int (*)(void *))f, "StartThread", arg); + uae_thread_id id = SDL_CreateThread (reinterpret_cast(f), "StartThread", arg); if(foo != NULL) *foo = id; return id; @@ -66,7 +66,7 @@ STATIC_INLINE uae_thread_id uae_start_thread(const TCHAR* name, void*(*f)(void*) STATIC_INLINE uae_thread_id uae_start_thread_fast(void*(*f)(void*), void* arg, uae_thread_id* foo) { - uae_thread_id id = SDL_CreateThread ((int (*)(void *))f, "StartThreadFast", arg); + uae_thread_id id = SDL_CreateThread (reinterpret_cast(f), "StartThreadFast", arg); if(foo != NULL) *foo = id; return id; @@ -75,7 +75,7 @@ STATIC_INLINE uae_thread_id uae_start_thread_fast(void*(*f)(void*), void* arg, u STATIC_INLINE void uae_wait_thread (uae_thread_id thread) { - SDL_WaitThread (thread, (int*)0); + SDL_WaitThread (thread, static_cast(0)); } /* Do nothing; thread exits if thread function returns. */