Page MenuHomeFreeBSD

msun: Silence new harmless -Wimplicit-int-float-conversion warnings

Authored by jrtc27 on Oct 6 2019, 3:05 PM.



Clang from trunk recently added a warning for when implicit int-to-float
conversions cause a loss of precision. The code in question is designed
to be able to handle that, so add explicit casts to silence this.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jrtc27 created this revision.Oct 6 2019, 3:05 PM
mhorne added a subscriber: mhorne.Oct 7 2019, 10:50 PM
brooks added a reviewer: dim.Oct 8 2019, 5:37 PM
dim accepted this revision.Oct 8 2019, 5:58 PM

LGTM. I guess we could also define DYPE_MIN and DTYPE_MAX themselves to have the casts, but that looks like more churn.

This revision is now accepted and ready to land.Oct 8 2019, 5:58 PM