Module: wine Branch: master Commit: 564ede5d328b14a0aedbe88bc372574c243c19f7 URL: https://source.winehq.org/git/wine.git/?a=commit;h=564ede5d328b14a0aedbe88bc...
Author: Piotr Caban piotr@codeweavers.com Date: Tue Dec 21 12:54:58 2021 +0100
msvcrt: Don't set _EM_AMBIGOUS flag in _control87 when sse2 is not supported.
Fixes compilation warning.
Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/msvcrt/math.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c index 3af44f83a08..a80f60bb6c1 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -5677,8 +5677,11 @@ unsigned int CDECL _control87(unsigned int newval, unsigned int mask)
__control87_2( newval, mask, &flags, &sse2_cw );
- if ((flags ^ sse2_cw) & (_MCW_EM | _MCW_RC)) flags |= _EM_AMBIGUOUS; - flags |= sse2_cw; + if (sse2_supported) + { + if ((flags ^ sse2_cw) & (_MCW_EM | _MCW_RC)) flags |= _EM_AMBIGUOUS; + flags |= sse2_cw; + } #else flags = newval; _setfp(&flags, mask, NULL, 0);