diff --git a/src/thread/pthread/SDL_systhread.c b/src/thread/pthread/SDL_systhread.c index bf27fbc9d..479bf34db 100644 --- a/src/thread/pthread/SDL_systhread.c +++ b/src/thread/pthread/SDL_systhread.c @@ -99,7 +99,7 @@ void SDL_SYS_SetupThread(void) /* WARNING: This may not work for systems with 64-bit pid_t */ Uint32 SDL_ThreadID(void) { - return((Uint32)pthread_self()); + return((Uint32)((size_t)pthread_self())); } void SDL_SYS_WaitThread(SDL_Thread *thread)