aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-04-25 08:12:24 +0000
committerUlrich Drepper <drepper@redhat.com>2009-04-25 08:12:24 +0000
commite971e76d8d248ce128641983e90b7cf6e81f2e4e (patch)
tree7ae73bbc23f891972dc747bd5c29a42855982ff3 /sysdeps
parentdb6edfb341b4d15a24c80bf4113462203bd2dfc8 (diff)
downloadglibc-e971e76d8d248ce128641983e90b7cf6e81f2e4e.zip
glibc-e971e76d8d248ce128641983e90b7cf6e81f2e4e.tar.gz
glibc-e971e76d8d248ce128641983e90b7cf6e81f2e4e.tar.bz2
* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
for lgamma should se errno to ERANGE, not EDOM. * math/libm-test.inc (lgamma_test): Check errno for pole errors.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/ieee754/k_standard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/ieee754/k_standard.c b/sysdeps/ieee754/k_standard.c
index d8fa2a4..a81da13 100644
--- a/sysdeps/ieee754/k_standard.c
+++ b/sysdeps/ieee754/k_standard.c
@@ -383,7 +383,7 @@ static double zero = 0.0; /* used as const */
else
exc.retval = HUGE_VAL;
if (_LIB_VERSION == _POSIX_)
- __set_errno (EDOM);
+ __set_errno (ERANGE);
else if (!matherr(&exc)) {
if (_LIB_VERSION == _SVID_) {
(void) WRITE2("lgamma: SING error\n", 19);
@@ -990,7 +990,7 @@ static double zero = 0.0; /* used as const */
__set_errno (ERANGE);
}
break;
-
+
/* #### Last used is 50/150/250 ### */
}
return exc.retval;