Avoid truncating from long double to double in sinhl().

This routine makes a call to fabs instead of fabsl(), causing truncation.

Clang complains (warning: absolute value function 'fabs' given an argument of type 'long double' but has parameter of type 'double' which may cause truncation of value).

Signed-off-by: David Wohlferd <dw@LimeGreenSocks.com>
This commit is contained in:
David Wohlferd 2016-08-22 00:51:12 -07:00 committed by Corinna Vinschen
parent 96fc528397
commit 113abc27a6

View File

@ -67,7 +67,7 @@ long double sinhl(long double x)
if (x_class == FP_ZERO)
return x;
if (x_class == FP_INFINITE ||
(fabs (x) > (MAXLOGL + LOGE2L)))
(fabsl (x) > (MAXLOGL + LOGE2L)))
{
errno = ERANGE;
#ifdef INFINITIES