summaryrefslogtreecommitdiff
path: root/src/get_str.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-06-25 13:15:40 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-06-25 13:15:40 +0000
commit1df259220eb5bf13804a69312adc760057d2ce4c (patch)
treee6c66c4c3baee046681a36a0548ccfeafffb2af8 /src/get_str.c
parent3995ccc2ac359a2a66c567b0cc48b0ca987231e7 (diff)
downloadmpfr-1df259220eb5bf13804a69312adc760057d2ce4c.tar.gz
Use MPFR_IS_NEG and MPFR_IS_POS instead of comparing the sign with 0.
Done with perl -pi -e ' s/MPFR_SIGN *\(([^)]+)\) *<=? *0/MPFR_IS_NEG ($1)/g; s/MPFR_SIGN *\(([^)]+)\) *>=? *0/MPFR_IS_POS ($1)/g; ' {src,tests}/*.{c,h} and some manual changes. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9092 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/get_str.c')
-rw-r--r--src/get_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get_str.c b/src/get_str.c
index f817dc9d8..91bcc1fa8 100644
--- a/src/get_str.c
+++ b/src/get_str.c
@@ -2278,7 +2278,7 @@ mpfr_get_str (char *s, mpfr_exp_t *e, int b, size_t m, mpfr_srcptr x, mpfr_rnd_t
return s;
}
- neg = MPFR_SIGN(x) < 0; /* 0 if positive, 1 if negative */
+ neg = MPFR_IS_NEG (x); /* 0 if positive, 1 if negative */
if (MPFR_UNLIKELY (MPFR_IS_INF (x)))
{