From 9c6ddbb14a192bd914cf9c53feb2eb4008d7c4fa Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 12 Sep 2009 13:16:33 +0000 Subject: [PATCH] Fixed compiler warning on 64-bit systems (but this is still broken, really). --- src/thread/pthread/SDL_systhread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)