summaryrefslogtreecommitdiff
path: root/cmp_si.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-19 12:01:16 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-19 12:01:16 +0000
commit73a7c65e1ebdfa0010e59ede641b50aa125483d7 (patch)
treefaab05380fe5df82f0a6c8e4871050a9b0a25e61 /cmp_si.c
parent4da1cab2193feca71fa82d0fee20a0b631d6c020 (diff)
downloadmpfr-73a7c65e1ebdfa0010e59ede641b50aa125483d7.tar.gz
SAFE_ABS changed so that it can be used for any unsigned type.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1899 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'cmp_si.c')
-rw-r--r--cmp_si.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmp_si.c b/cmp_si.c
index 67477ecfb..5666a102e 100644
--- a/cmp_si.c
+++ b/cmp_si.c
@@ -55,7 +55,7 @@ mpfr_cmp_si_2exp (mpfr_srcptr b, long int i, mp_exp_t f)
mp_size_t bn;
mp_limb_t c, *bp;
- ai = SAFE_ABS(long, i);
+ ai = SAFE_ABS(unsigned long, i);
/* ai must be representable in a mp_limb_t */
MPFR_ASSERTN(ai == (mp_limb_t) ai);