fix omitted parentheses warning (-Wparentheses)
authorMichael Gilbert <mgilbert@debian.org>
Tue, 13 Sep 2022 00:46:21 +0000 (01:46 +0100)
committerMichael Gilbert <mgilbert@debian.org>
Tue, 13 Sep 2022 00:46:21 +0000 (01:46 +0100)
Gbp-Pq: Topic warnings
Gbp-Pq: Name parentheses.patch

dlls/msvcrt/math.c

index 14afad5fb4569600c8171ed83352b8b05025225b..2b65e0986c7495b261301eeeee72408ba480899a 100644 (file)
@@ -5452,7 +5452,7 @@ static void _setfp( unsigned int *cw, unsigned int cw_mask,
     }
 
     /* mask exceptions if needed */
-    if (old_fpcr != fpcr && ~(old_fpcr >> 8) & fpsr & 0x9f != fpsr & 0x9f)
+    if ((old_fpcr != fpcr) && ((~(old_fpcr >> 8) & fpsr & 0x9f) != (fpsr & 0x9f)))
     {
         ULONG_PTR mask = fpcr & ~0x9f00;
         __asm__ __volatile__( "msr fpcr, %0" :: "r" (mask) );