Add an explicit cast to shut up g++47 on FreeBSD

This commit is contained in:
Yamagi Burmeister 2013-01-14 19:13:48 +01:00 committed by Daniel Gibson
parent 649577e9be
commit 63b1816be6

View file

@ -103,7 +103,14 @@ Sys_GetCurrentThreadID
*/ */
uintptr_t Sys_GetCurrentThreadID() uintptr_t Sys_GetCurrentThreadID()
{ {
return pthread_self(); /*
* This cast is save because pthread_self()
* returns a pointer and uintptr_t is
* designed to hold a pointer. The compiler
* is just too stupid to know. :)
* -- Yamagi
*/
return ( uintptr_t )pthread_self();
} }
/* /*