mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-03 09:22:45 +00:00
Add an explicit cast to shut up g++47 on FreeBSD
This commit is contained in:
parent
649577e9be
commit
63b1816be6
1 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue