From 23977444173bc0f85b0a89c6eb1784e04724b174 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Fri, 21 Feb 2003 15:04:06 +0000 Subject: Fixed cast (though unnecessary). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2247 280ebfd0-de03-0410-8827-d642c229c3f4 --- get_ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'get_ui.c') 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 ++); -- cgit v1.2.1