summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/get_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get_str.c b/src/get_str.c
index 11c85f946..afef7bbc2 100644
--- a/src/get_str.c
+++ b/src/get_str.c
@@ -2547,7 +2547,7 @@ mpfr_get_str_ndigits (int b, mpfr_prec_t p)
/* d <= p*log(2)/log(b) <= u */
mpfr_ceil (d, d);
mpfr_ceil (u, u);
- if (mpfr_cmp (d, u) == 0)
+ if (mpfr_equal_p (d, u))
ret = mpfr_get_ui (d, MPFR_RNDU);
mpfr_clear (d);
mpfr_clear (u);