From ec866d8b963a2c81e48c60b13a1ffc8d2553d999 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). --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403795 --- 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)