]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
authorUlrich Drepper <drepper@redhat.com>
Mon, 27 Apr 2009 04:01:16 +0000 (04:01 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 27 Apr 2009 04:01:16 +0000 (04:01 +0000)
atanh should set ERANGE.

ChangeLog
sysdeps/ieee754/k_standard.c

index 6109ec73da732ac0372817918bd30139353a2669..10a28daef3493714936cfd583dafa41e8b0dde08 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
+       atanh should set ERANGE.
+
        [BZ #10087]
        * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
        result of lookup to make call to implement STT_GNU_IFUNC.
index c13d11fe4e06e9b971396716a2f9167bb6a6e5a1..ede5157454aec015ea25431f483f95ddf258228a 100644 (file)
@@ -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);