[warnings] fixed -Woverflow

This commit is contained in:
Armin Novak
2023-12-13 10:42:24 +01:00
committed by akallabeth
parent 3043fca91d
commit d3716ef0ba

View File

@@ -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)
{