From 3cafd6f2f48a93caa17a7153fc1c3a660afa6207 Mon Sep 17 00:00:00 2001 From: Michael Gilbert Date: Sat, 24 Sep 2022 18:29:03 +0100 Subject: [PATCH] fix omitted parentheses warning (-Wparentheses) Gbp-Pq: Topic warnings Gbp-Pq: Name parentheses.patch --- dlls/msvcrt/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c index 14afad5..2b65e09 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -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) ); -- 2.30.2