summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-02-21 15:04:06 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-02-21 15:04:06 +0000
commit23977444173bc0f85b0a89c6eb1784e04724b174 (patch)
tree8c99c12d32e097d45593c678d5ee4f11999051d1
parentb907fa338a3e713309369d5dc634864797ff57d7 (diff)
downloadmpfr-23977444173bc0f85b0a89c6eb1784e04724b174.tar.gz
Fixed cast (though unnecessary).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2247 280ebfd0-de03-0410-8827-d642c229c3f4
-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 ++);