From 2580a2b391cb47540b7d33dbd38ea7d301d2036c Mon Sep 17 00:00:00 2001 From: vlefevre Date: Tue, 6 Dec 2016 15:40:25 +0000 Subject: 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 --- tests/tdiv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/tdiv.c') 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); -- cgit v1.2.1