summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-09-06 10:44:48 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-09-06 10:44:48 +0000
commit6c590b2f7baba681d7abc49f454bd7af03f51906 (patch)
tree0fdead57a976a4c100a57c66b0f6a03be70180b9
parentf289c916580b4d594fc6d66ce21765007b9d0569 (diff)
downloadmpfr-6c590b2f7baba681d7abc49f454bd7af03f51906.tar.gz
[tests/tdiv.c] !mpfr_equal_p is better than mpfr_cmp.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13151 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tdiv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tdiv.c b/tests/tdiv.c
index 044941f8a..37109569d 100644
--- a/tests/tdiv.c
+++ b/tests/tdiv.c
@@ -1164,7 +1164,7 @@ test_20151023 (void)
MPFR_ASSERTN(inex == 0);
mpfr_nextabove (n);
mpfr_div (q, n, d, MPFR_RNDN);
- if (mpfr_cmp (q, q0) != 0)
+ if (! mpfr_equal_p (q, q0))
{
printf ("Error in test_20151023 for p=%lu, rnd=RNDN\n", p);
printf ("n="); mpfr_dump (n);