mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-17 14:30:00 +00:00
microprofile: Silence warning in headers
Silences a truncation warning by making the truncation explicit and documenting the reason for it.
This commit is contained in:
parent
222fe75401
commit
ee21b5378b
1 changed files with 5 additions and 1 deletions
6
externals/microprofile/microprofile.h
vendored
6
externals/microprofile/microprofile.h
vendored
|
@ -948,7 +948,11 @@ typedef HANDLE MicroProfileThread;
|
|||
DWORD _stdcall ThreadTrampoline(void* pFunc)
|
||||
{
|
||||
MicroProfileThreadFunc F = (MicroProfileThreadFunc)pFunc;
|
||||
return (DWORD)F(0);
|
||||
|
||||
// The return value of F will always return a void*, however, this is for
|
||||
// compatibility with pthreads. The underlying "address" of the pointer
|
||||
// is always a 32-bit value, so this cast is safe to perform.
|
||||
return static_cast<DWORD>(reinterpret_cast<uint64_t>(F(0)));
|
||||
}
|
||||
|
||||
inline void MicroProfileThreadStart(MicroProfileThread* pThread, MicroProfileThreadFunc Func)
|
||||
|
|
Loading…
Reference in a new issue