Mercurial > sdl-ios-xcode
comparison src/thread/pthread/SDL_systhread.c @ 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 | a1b03ba2fcd0 |
children |
comparison
equal
deleted
inserted
replaced
4186:5bacec0933f5 | 4187:b8d7c7a46ff7 |
---|---|
97 } | 97 } |
98 | 98 |
99 /* WARNING: This may not work for systems with 64-bit pid_t */ | 99 /* WARNING: This may not work for systems with 64-bit pid_t */ |
100 Uint32 SDL_ThreadID(void) | 100 Uint32 SDL_ThreadID(void) |
101 { | 101 { |
102 return((Uint32)pthread_self()); | 102 return((Uint32)((size_t)pthread_self())); |
103 } | 103 } |
104 | 104 |
105 void SDL_SYS_WaitThread(SDL_Thread *thread) | 105 void SDL_SYS_WaitThread(SDL_Thread *thread) |
106 { | 106 { |
107 pthread_join(thread->handle, 0); | 107 pthread_join(thread->handle, 0); |