summaryrefslogtreecommitdiff
path: root/cmp.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-01 14:58:32 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-01 14:58:32 +0000
commitc3a6ff25fa82fce1400baecaaccd5328bb51895e (patch)
treed3e22d6359e589761ebd97d4f0524249feaa9892 /cmp.c
parent0ea08f43d4ea2c2568c569ad43df76dabd7d149e (diff)
downloadmpfr-c3a6ff25fa82fce1400baecaaccd5328bb51895e.tar.gz
fixed bug in mpfr_cmp3 (when b=0, s not taken into account)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@820 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'cmp.c')
-rw-r--r--cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmp.c b/cmp.c
index ea6d57e62..f4f04d1ad 100644
--- a/cmp.c
+++ b/cmp.c
@@ -54,7 +54,7 @@ mpfr_cmp3(b, c, s)
mp_limb_t *bp, *cp;
if (!MPFR_NOTZERO(b)) {
- if (!MPFR_NOTZERO(c)) return 0; else return -(MPFR_SIGN(c));
+ if (!MPFR_NOTZERO(c)) return 0; else return -(s*MPFR_SIGN(c));
/*TODO: bug ou feature ? s pas pris en compte... */
}
else if (!MPFR_NOTZERO(c)) return MPFR_SIGN(b);