[libc-commits] [libc] [libc] fix error: implicit conversion loses floating-point precision: 'double' to 'float' in shared_math_test.cpp (PR #159934)

via libc-commits libc-commits at lists.llvm.org
Sat Sep 20 19:51:08 PDT 2025


lntue wrote:

> 
> Note, I'm not sure if this is the right - the alternative could be 
> 
> ```c++
> EXPECT_FP_EQ(0x0p+0, LIBC_NAMESPACE::shared::dsqrtl(0.0));
> ```
> 
> but all the values in this test are single 🤷.

The input should be 0.0L and the output should be 0.0

https://github.com/llvm/llvm-project/pull/159934


More information about the libc-commits mailing list