summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--get_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/get_ui.c b/get_ui.c
index b89619206..38ffbdc38 100644
--- a/get_ui.c
+++ b/get_ui.c
@@ -34,7 +34,7 @@ mpfr_get_ui (mpfr_srcptr f, mp_rnd_t rnd)
mp_exp_t exp;
if (!mpfr_fits_ulong_p (f, rnd) || MPFR_IS_ZERO(f))
- return (long) 0;
+ return (unsigned long) 0;
/* determine prec of unsigned long */
for (s = ULONG_MAX, prec = 0; s != 0; s /= 2, prec ++);