summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/tdiv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tdiv.c b/tests/tdiv.c
index e9052471f..160153482 100644
--- a/tests/tdiv.c
+++ b/tests/tdiv.c
@@ -644,7 +644,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);
@@ -656,7 +657,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);