diff options
Diffstat (limited to 'exceptions.c')
-rw-r--r-- | exceptions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/exceptions.c b/exceptions.c index 0cf22b45d..b04a7dddc 100644 --- a/exceptions.c +++ b/exceptions.c @@ -205,6 +205,7 @@ mpfr_set_underflow () MPFR_SET_ZERO(x); } if (MPFR_SIGN(x) != sign) { MPFR_CHANGE_SIGN(x); } + __mpfr_flags |= MPFR_FLAGS_UNDERFLOW; } #undef mpfr_set_overflow @@ -233,4 +234,5 @@ mpfr_set_overflow () MPFR_SET_INF(x); } if (MPFR_SIGN(x) != sign) { MPFR_CHANGE_SIGN(x); } + __mpfr_flags |= MPFR_FLAGS_OVERFLOW; } |