summaryrefslogtreecommitdiff
path: root/tests/tsec.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 /tests/tsec.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 'tests/tsec.c')
-rw-r--r--tests/tsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tsec.c b/tests/tsec.c
index a0aacf99e..e0c533183 100644
--- a/tests/tsec.c
+++ b/tests/tsec.c
@@ -135,7 +135,7 @@ overflowed_sec0 (void)
i, mpfr_print_rnd_mode ((mpfr_rnd_t) rnd));
err = 1;
}
- if (! (mpfr_inf_p (x) && MPFR_SIGN (x) > 0))
+ if (! (mpfr_inf_p (x) && MPFR_IS_POS (x)))
{
printf ("Error in overflowed_sec0 (i = %d, rnd = %s):\n"
" Got ", i, mpfr_print_rnd_mode ((mpfr_rnd_t) rnd));