Fixed sign-compare warning

This commit is contained in:
Armin Novak 2019-01-30 09:24:52 +01:00
parent acebd43acf
commit f39ec7c453
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ BOOL WINAPI winpr_EnterSynchronizationBarrier(LPSYNCHRONIZATION_BARRIER lpBarrie
* of processors.
*/
if (spinOnly || (remainingThreads < dwProcessors && !blockOnly))
if (spinOnly || (((ULONG)remainingThreads < dwProcessors) && !blockOnly))
{
DWORD dwSpinCount = lpBarrier->Reserved5;
DWORD sp = 0;