Fixed compiler warning about cast.

This commit is contained in:
Armin Novak 2016-02-04 12:57:21 +01:00
parent 3b0f5b5b48
commit b6b0f57a88
1 changed files with 1 additions and 2 deletions

View File

@ -663,8 +663,7 @@ DWORD GetCurrentThreadId(VOID)
/* Since pthread_t can be 64-bits on some systems, take just the */
/* lower 32-bits of it for the thread ID returned by this function. */
tid = (long)tid & 0xffffffff;
return (DWORD) tid;
return (DWORD)tid & 0xffffffffUL;
}
DWORD ResumeThread(HANDLE hThread)