在 2026-2-28 20:27, Erez 写道:
That is why the macro "isnan(x)" which uses the same structure is using 
explicit casting.
See: https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/crt/math.h#l589 <https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/crt/math.h#l589>

The casting  "__isnanl((long double)(x))" is not really needed, as x must be a float type and can only be upcasted or already using long double.
But I guess it was added for symmetric, prettiness and for possible future 
higher floating point types.

I see your point now. The sub-expression which does implicit double-to-float conversion isn't actually executed, but it is checked and produces such warnings.

So the patch looks good. I have push it to master, with fixes in the previous 
message.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to