summaryrefslogtreecommitdiff
path: root/tests/tgeneric.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tgeneric.c')
-rw-r--r--tests/tgeneric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tgeneric.c b/tests/tgeneric.c
index 4450df9d0..91c22ce7a 100644
--- a/tests/tgeneric.c
+++ b/tests/tgeneric.c
@@ -654,7 +654,7 @@ test_generic (mpfr_prec_t p0, mpfr_prec_t p1, unsigned int nmax)
TGENERIC_CHECK ("should have been min MPFR number (underflow)",
MPFR_IS_ZERO (y));
}
- else if (mpfr_can_round (y, yprec, rnd, rnd, prec))
+ else if (compare == 0 || mpfr_can_round (y, yprec, rnd, rnd, prec))
{
ctrn++;
mpfr_set (t, y, rnd);