Fix parameter type in C++ version of iseqsig (bug 23171)

The commit

  commit c85e54ac6c
  Author: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
  Date:   Fri Nov 3 10:44:36 2017 -0200

      Provide a C++ version of iseqsig (bug 22377)

mistakenly used double parameters in the long double version of iseqsig,
thus causing spurious conversions to double, as reported on bug 23171.

Tested for powerpc64le and x86_64.
This commit is contained in:
Gabriel F. T. Gomes 2018-05-14 09:04:28 -03:00
parent 43d4f3d5ad
commit fb0e10b8eb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
[BZ #23171]
* math/math.h [C++] (iseqsig): Fix parameter type for the long
double version.
2018-05-23 Joseph Myers <joseph@codesourcery.com>
* sysdeps/sh/Implies: Remove sh/soft-fp.

View File

@ -1511,7 +1511,7 @@ template<> struct __iseqsig_type<double>
template<> struct __iseqsig_type<long double>
{
static int __call (double __x, double __y) throw ()
static int __call (long double __x, long double __y) throw ()
{
# ifndef __NO_LONG_DOUBLE_MATH
return __iseqsigl (__x, __y);