]> git.ipfire.org Git - thirdparty/glibc.git/commit
math: Fix compare sort function on compoundn
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 20 Oct 2025 12:27:53 +0000 (09:27 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 21 Oct 2025 12:27:05 +0000 (09:27 -0300)
commit0e4ca88bd24c1d705a45b5e12fe562aaa9516ef4
tree44c45dbe423821c6199b4d6850e75e6a24993517
parentab22e5ec37396f6c6f29d3e3306f6fcc2ebe9d49
math: Fix compare sort function on compoundn

To use the fabs function to the used type, instead of the double
variant.  it fixes a build issue with clang:

./s_compoundn_template.c:64:14: error: absolute value function 'fabs' given an argument of type 'const long double' but has parameter of type 'double' which may cause truncation of value [-Werror,-Wabsolute-value]
   64 |   FLOAT pd = fabs (*(const FLOAT *) p);
      |              ^
./s_compoundn_template.c:64:14: note: use function 'fabsl' instead
   64 |   FLOAT pd = fabs (*(const FLOAT *) p);
      |              ^~~~
      |              fabsl

Reviewed-by: Collin Funk <collin.funk1@gmail.com>
math/s_compoundn_template.c