commit bd88edecb440aeebd70b70f76980547d49f83df6 parent 574b1c03d5724f4665d90b864c5015b38978ba5a Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Jan 8 22:07:32 +0200 64bit thread IDs on Windows too Diffstat:
win32_thread.h | | | 5 | ++--- |
diff --git a/win32_thread.h b/win32_thread.h @@ -23,9 +23,8 @@ inline void thread_init( Thread * thread, ThreadCallback callback, void * data ) CloseHandle( handle ); } -inline u32 thread_getid() { - // TODO: make this cast explicit and checked - return GetCurrentThreadId(); +inline u64 thread_getid() { + return checked_cast< u64 >( GetCurrentThreadId() ); } inline void thread_yield() {