diff options
Diffstat (limited to 'src/sqrt.c')
-rw-r--r-- | src/sqrt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqrt.c b/src/sqrt.c index 71aa97a1e..3c56264ba 100644 --- a/src/sqrt.c +++ b/src/sqrt.c @@ -227,6 +227,7 @@ mpfr_sqrt (mpfr_ptr r, mpfr_srcptr u, mpfr_rnd_t rnd_mode) end: /* Do not use MPFR_SET_EXP because the range has not been checked yet. */ + MPFR_ASSERTN (expr >= MPFR_EMIN_MIN && expr <= MPFR_EMAX_MAX); MPFR_EXP (r) = expr; MPFR_TMP_FREE(marker); |