summaryrefslogtreecommitdiff
path: root/tests/tdiv.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-12-06 15:40:25 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-12-06 15:40:25 +0000
commit2580a2b391cb47540b7d33dbd38ea7d301d2036c (patch)
tree0d3b41cf73225c9cd96127a16734ad483e26b19e /tests/tdiv.c
parent4ddd0dcfbf54fbed9e9c6117a7248090dd253ac2 (diff)
downloadmpfr-2580a2b391cb47540b7d33dbd38ea7d301d2036c.tar.gz
Merged the latest changes from the trunk except those related to
mpfr_zeta (it is buggy and not fixed yet in the trunk, but the bug will not be triggered here, allowing the tests to pass). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10971 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tdiv.c')
-rw-r--r--tests/tdiv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tdiv.c b/tests/tdiv.c
index 39cab385f..5239b9153 100644
--- a/tests/tdiv.c
+++ b/tests/tdiv.c
@@ -645,7 +645,8 @@ check_inexact (void)
mpfr_set_prec (u, 2);
mpfr_set_str_binary (u, "0.1E0");
mpfr_set_prec (y, 28);
- if ((inexact = test_div (y, x, u, MPFR_RNDN) >= 0))
+ inexact = test_div (y, x, u, MPFR_RNDN);
+ if (inexact >= 0)
{
printf ("Wrong inexact flag (1): expected -1, got %d\n",
inexact);
@@ -657,7 +658,8 @@ check_inexact (void)
mpfr_set_prec (u, 15);
mpfr_set_str_binary (u, "0.101101000001100E-1");
mpfr_set_prec (y, 92);
- if ((inexact = test_div (y, x, u, MPFR_RNDN)) <= 0)
+ inexact = test_div (y, x, u, MPFR_RNDN);
+ if (inexact <= 0)
{
printf ("Wrong inexact flag for rnd=MPFR_RNDN(1): expected 1, got %d\n",
inexact);