summaryrefslogtreecommitdiff
path: root/cos.c
diff options
context:
space:
mode:
Diffstat (limited to 'cos.c')
-rw-r--r--cos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cos.c b/cos.c
index 7203f351f..5efc382b6 100644
--- a/cos.c
+++ b/cos.c
@@ -78,7 +78,7 @@ mpfr_cos (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
/* now the error is bounded by 2^(k-m) = 2^(EXP(s)-err) */
l = mpfr_can_round (s, MPFR_GET_EXP (s) + m - k,
- GMP_RNDN, rnd_mode, precy);
+ GMP_RNDN, GMP_RNDZ, precy + (rnd_mode == GMP_RNDN));
if (l == 0)
{