summaryrefslogtreecommitdiff
path: root/math/w_jn.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_jn.c')
-rw-r--r--math/w_jn.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/w_jn.c b/math/w_jn.c
index e2e69b4239..e9179835ba 100644
--- a/math/w_jn.c
+++ b/math/w_jn.c
@@ -51,8 +51,11 @@ yn (int n, double x)
return __kernel_standard (n, x, 13);
}
else if (x == 0.0)
- /* d = -one/(x-x) */
- return __kernel_standard (n, x, 12);
+ {
+ /* d = -one/(x-x) */
+ feraiseexcept (FE_DIVBYZERO);
+ return __kernel_standard (n, x, 12);
+ }
else if (_LIB_VERSION != _POSIX_)
/* yn(n,x>X_TLOSS) */
return __kernel_standard (n, x, 39);