summaryrefslogtreecommitdiff
path: root/mpfr.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpfr.c b/mpfr.c
index 21bac6cd..f82cb5e7 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -1442,7 +1442,7 @@ mpg_tofloat(mpfr_ptr mf, mpz_ptr mz)
* Always set the precision to avoid hysteresis, since do_mpfr_func
* may copy our precision.
*/
- if (prec != mpfr_get_prec(mf))
+ if (prec != (size_t) mpfr_get_prec(mf))
mpfr_set_prec(mf, prec);
mpfr_set_z(mf, mz, ROUND_MODE);