summaryrefslogtreecommitdiff
path: root/src/yn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/yn.c')
-rw-r--r--src/yn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yn.c b/src/yn.c
index 5412db567..a6df3cee8 100644
--- a/src/yn.c
+++ b/src/yn.c
@@ -170,7 +170,7 @@ mpfr_yn (mpfr_ptr res, long n, mpfr_srcptr z, mpfr_rnd_t r)
0. We choose to return +0 in that case. */
else if (MPFR_IS_INF (z))
{
- if (MPFR_SIGN(z) > 0)
+ if (MPFR_IS_POS (z))
return mpfr_set_ui (res, 0, r);
else /* y(n,-Inf) = NaN */
{
@@ -193,7 +193,7 @@ mpfr_yn (mpfr_ptr res, long n, mpfr_srcptr z, mpfr_rnd_t r)
/* for z < 0, y(n,z) is imaginary except when j(n,|z|) = 0, which we
assume does not happen for a rational z. */
- if (MPFR_SIGN(z) < 0)
+ if (MPFR_IS_NEG (z))
{
MPFR_SET_NAN (res);
MPFR_RET_NAN;