summaryrefslogtreecommitdiff
path: root/src/frexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frexp.c')
-rw-r--r--src/frexp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frexp.c b/src/frexp.c
index a640efac8..69b79752a 100644
--- a/src/frexp.c
+++ b/src/frexp.c
@@ -59,6 +59,8 @@ mpfr_frexp (mpfr_exp_t *exp, mpfr_ptr y, mpfr_srcptr x, mpfr_rnd_t rnd)
MPFR_BLOCK (flags, inex = mpfr_set (y, x, rnd));
__gmpfr_flags = saved_flags;
+ /* Possible overflow due to the rounding, no possible underflow. */
+
if (MPFR_UNLIKELY (MPFR_OVERFLOW (flags)))
{
int inex2;