libm: Fix float conversion compiler warning
commitee077ec4d9351c9f9c3e1293dfb3da8e1fe36261
authorMarcus Haehnel <marcus.haehnel@kernkonzept.com>
Tue, 9 Jul 2024 07:39:33 +0000 (9 09:39 +0200)
committerWaldemar Brodkorb <wbx@openadk.org>
Tue, 9 Jul 2024 07:53:21 +0000 (9 09:53 +0200)
treea01bed318ebc340ad4b1f61719443a166200f128
parent5820f4b5860f97c66b01bc8e25ea876ae4f07478
libm: Fix float conversion compiler warning

Make two implicit casts from double to int explicit to silence compiler
warnings about them. The casts are required during the computation of
exponentiation.

Co-authored-by: Sven Linker <sven.linker@kernkonzept.com>
Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
libm/e_exp.c
libm/s_expm1.c