diff options
-rw-r--r-- | src/sub1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sub1.c b/src/sub1.c index 0256e43cd..1e9fd72ae 100644 --- a/src/sub1.c +++ b/src/sub1.c @@ -115,6 +115,9 @@ mpfr_sub1 (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode) /* If diff_exp == MPFR_EXP_MAX, the actual value can be larger, but anyway, since mpfr_exp_t >= mp_size_t, this will be the case c small below, and the exact value does not matter. */ + /* mpfr_set4 below used with MPFR_RNDF does not support UBF. */ + if (rnd_mode == MPFR_RNDF) + rnd_mode = MPFR_RNDN; } else { |