diff options
author | Marcus Haehnel <marcus.haehnel@kernkonzept.com> | 2024-07-09 09:38:40 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-07-09 09:53:20 +0200 |
commit | 5820f4b5860f97c66b01bc8e25ea876ae4f07478 (patch) | |
tree | 026ab686123461d5f89258d0fc41221285679002 /libm/float_wrappers.c | |
parent | 6271f8e869a4369b3bbcdd8a58ccce876eeae49b (diff) |
uclibc: Fix double promotion warning
Add casts where necessary to convince clang that the promotion of float
to double is intentional.
Co-authored-by: Sven Linker <sven.linker@kernkonzept.com>
Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Diffstat (limited to 'libm/float_wrappers.c')
-rw-r--r-- | libm/float_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c index 948f6bc14..35887dde2 100644 --- a/libm/float_wrappers.c +++ b/libm/float_wrappers.c @@ -230,7 +230,7 @@ long_WRAPPER1(lround) float modff (float x, float *iptr) { double y, result; - result = modf( x, &y ); + result = modf( (double)x, &y ); *iptr = (float)y; return (float) result; } |