summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Wohlferd <dw@LimeGreenSocks.com>2016-08-22 00:51:12 -0700
committerCorinna Vinschen <corinna@vinschen.de>2016-08-22 14:18:39 +0200
commit113abc27a6df3325f024aa2c5aff30126cfeb247 (patch)
tree4ea282794981fab4fc7af720bb4feb07db5652ed
parent96fc528397f02a8ac36cfd66179fed815d3ab527 (diff)
downloadcygnal-113abc27a6df3325f024aa2c5aff30126cfeb247.tar.gz
cygnal-113abc27a6df3325f024aa2c5aff30126cfeb247.tar.bz2
cygnal-113abc27a6df3325f024aa2c5aff30126cfeb247.zip
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>
-rw-r--r--winsup/cygwin/math/sinhl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/math/sinhl.c b/winsup/cygwin/math/sinhl.c
index f6ecef0f2..4db0e51ff 100644
--- a/winsup/cygwin/math/sinhl.c
+++ b/winsup/cygwin/math/sinhl.c
@@ -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