diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-04-27 04:01:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-04-27 04:01:16 +0000 |
commit | 49768bb93e4960a814563ee30213eaf36e6dcb48 (patch) | |
tree | f3f6635329c8aa9458b006c2f108e331969ca7bb /sysdeps/ieee754 | |
parent | 218555e9f7d963227f90bdc0d2fbec814f7553e1 (diff) | |
download | glibc-49768bb93e4960a814563ee30213eaf36e6dcb48.tar glibc-49768bb93e4960a814563ee30213eaf36e6dcb48.tar.gz glibc-49768bb93e4960a814563ee30213eaf36e6dcb48.tar.bz2 glibc-49768bb93e4960a814563ee30213eaf36e6dcb48.zip |
* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
atanh should set ERANGE.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/k_standard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/k_standard.c b/sysdeps/ieee754/k_standard.c index c13d11fe4e..ede5157454 100644 --- a/sysdeps/ieee754/k_standard.c +++ b/sysdeps/ieee754/k_standard.c @@ -692,7 +692,7 @@ static double zero = 0.0; /* used as const */ ? "atanhf" : "atanhl"); exc.retval = x/zero; /* sign(x)*inf */ if (_LIB_VERSION == _POSIX_) - __set_errno (EDOM); + __set_errno (ERANGE); else if (!matherr(&exc)) { if (_LIB_VERSION == _SVID_) { (void) WRITE2("atanh: SING error\n", 18); |