diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-01 14:58:32 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-01 14:58:32 +0000 |
commit | c3a6ff25fa82fce1400baecaaccd5328bb51895e (patch) | |
tree | d3e22d6359e589761ebd97d4f0524249feaa9892 /cmp.c | |
parent | 0ea08f43d4ea2c2568c569ad43df76dabd7d149e (diff) | |
download | mpfr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |