From 6e655189c336ba82daafa9df45ffd0048fff479a Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 7 Feb 2019 14:36:50 +0100 Subject: [PATCH] Fixed sign-compare warnings --- winpr/libwinpr/synch/test/TestSynchBarrier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winpr/libwinpr/synch/test/TestSynchBarrier.c b/winpr/libwinpr/synch/test/TestSynchBarrier.c index bd6d191..13922c7 100644 --- a/winpr/libwinpr/synch/test/TestSynchBarrier.c +++ b/winpr/libwinpr/synch/test/TestSynchBarrier.c @@ -151,13 +151,13 @@ static BOOL TestSynchBarrierWithFlags(DWORD dwFlags, DWORD dwThreads, DWORD dwLo DeleteSynchronizationBarrier(&gBarrier); - if (p.threadCount != dwThreads) + if (p.threadCount != (INT64)dwThreads) InterlockedIncrement(&gErrorCount); - if (p.trueCount != expectedTrueCount) + if (p.trueCount != (INT64)expectedTrueCount) InterlockedIncrement(&gErrorCount); - if (p.falseCount != expectedFalseCount) + if (p.falseCount != (INT64)expectedFalseCount) InterlockedIncrement(&gErrorCount); printf("%s: error count: %"PRId32"\n", __FUNCTION__, gErrorCount); -- 2.7.4