From: Joseph Myers Date: Tue, 19 Mar 2013 22:38:25 +0000 (+0000) Subject: Fix types of constants in k_casinh*.c. X-Git-Tag: glibc-2.18~496 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b18bea6256e1eefebd27811873831d0e3f171de;p=thirdparty%2Fglibc.git Fix types of constants in k_casinh*.c. --- diff --git a/ChangeLog b/ChangeLog index 3bbcf3688df..d719501d366 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-03-19 Joseph Myers + + * math/k_casinhf.c (__kernel_casinhf): Consistently use float + constants. + * math/k_casinhl.c (__kernel_casinhl): Consistently use long + double constants. + 2013-03-19 Andreas Schwab * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x. diff --git a/math/k_casinhf.c b/math/k_casinhf.c index 3152ea2f7d9..7ff4b03a1c6 100644 --- a/math/k_casinhf.c +++ b/math/k_casinhf.c @@ -79,8 +79,8 @@ __kernel_casinhf (__complex__ float x, int adj) } else { - __real__ y = (rx - ix) * (rx + ix) + 1.0; - __imag__ y = 2.0 * rx * ix; + __real__ y = (rx - ix) * (rx + ix) + 1.0f; + __imag__ y = 2.0f * rx * ix; y = __csqrtf (y); diff --git a/math/k_casinhl.c b/math/k_casinhl.c index 110ae33dee5..aec501b079c 100644 --- a/math/k_casinhl.c +++ b/math/k_casinhl.c @@ -86,8 +86,8 @@ __kernel_casinhl (__complex__ long double x, int adj) } else { - __real__ y = (rx - ix) * (rx + ix) + 1.0; - __imag__ y = 2.0 * rx * ix; + __real__ y = (rx - ix) * (rx + ix) + 1.0L; + __imag__ y = 2.0L * rx * ix; y = __csqrtl (y);