math_config.h: Fix signed overflow warning for 16-bit targets

This commit is contained in:
Jon Beniston 2018-08-31 23:10:00 +01:00 committed by Corinna Vinschen
parent fcc1e7039f
commit 86c31ae47b
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ issignalingf_inline (float x)
uint32_t ix = asuint (x);
if (!IEEE_754_2008_SNAN)
return (ix & 0x7fc00000) == 0x7fc00000;
return 2 * (ix ^ 0x00400000) > 2u * 0x7fc00000;
return 2 * (ix ^ 0x00400000) > 0xFF800000u;
}
static inline int