From d3716ef0bad6709d6a24020683da87cf4ef04162 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 13 Dec 2023 10:42:24 +0100 Subject: [PATCH] [warnings] fixed -Woverflow --- winpr/libwinpr/interlocked/test/TestInterlockedAccess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/interlocked/test/TestInterlockedAccess.c b/winpr/libwinpr/interlocked/test/TestInterlockedAccess.c index 4bc0b3941..af4267139 100644 --- a/winpr/libwinpr/interlocked/test/TestInterlockedAccess.c +++ b/winpr/libwinpr/interlocked/test/TestInterlockedAccess.c @@ -122,7 +122,7 @@ int TestInterlockedAccess(int argc, char* argv[]) *Destination = (LONG)0xAABBCCDDL; - oldValue = InterlockedCompareExchange(Destination, 0xCCDDEEFFL, 0x66778899L); + oldValue = InterlockedCompareExchange(Destination, -857870593L, 0x66778899L); if (oldValue != (LONG)0xAABBCCDDL) {