summaryrefslogtreecommitdiff
path: root/sin_cos.c
diff options
context:
space:
mode:
Diffstat (limited to 'sin_cos.c')
-rw-r--r--sin_cos.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sin_cos.c b/sin_cos.c
index 327c5c7db..0e6195236 100644
--- a/sin_cos.c
+++ b/sin_cos.c
@@ -36,15 +36,14 @@ mpfr_sin_cos (mpfr_ptr y, mpfr_ptr z, mpfr_srcptr x, mp_rnd_t rnd_mode)
MPFR_SET_NAN(z);
MPFR_RET_NAN;
}
- else if (MPFR_IS_ZERO(x))
+ else /* x is zero */
{
+ MPFR_ASSERTD(MPFR_IS_ZERO(x));
MPFR_SET_ZERO(y);
MPFR_SET_SAME_SIGN(y, x);
mpfr_set_ui (z, 1, GMP_RNDN);
MPFR_RET(0);
}
- else
- MPFR_ASSERTN(0);
}
/* MPFR_CLEAR_FLAGS is useless since we use mpfr_set to set y and z */