changeset 4187:b8d7c7a46ff7 SDL-1.2

Fixed compiler warning on 64-bit systems (but this is still broken, really).
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 12 Sep 2009 13:16:33 +0000
parents 5bacec0933f5
children 9701c96e2cbb
files src/thread/pthread/SDL_systhread.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/thread/pthread/SDL_systhread.c	Sat Sep 12 13:15:27 2009 +0000
+++ b/src/thread/pthread/SDL_systhread.c	Sat Sep 12 13:16:33 2009 +0000
@@ -99,7 +99,7 @@
 /* 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)