summaryrefslogtreecommitdiff
path: root/tests/tpow3.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tpow3.c')
-rw-r--r--tests/tpow3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tpow3.c b/tests/tpow3.c
index 2b981bf54..eace4058c 100644
--- a/tests/tpow3.c
+++ b/tests/tpow3.c
@@ -61,7 +61,7 @@ main (int argc, char *argv[])
mpfr_urandomb (s, RANDS);
if (randlimb () % 2)
mpfr_neg (s, s, MPFR_RNDN);
- rnd = RND_RAND ();
+ do rnd = RND_RAND (); while (rnd == MPFR_RNDF);
mpfr_set_prec (y, yprec);
compare = mpfr_pow (y, x, s, rnd);
err = (rnd == MPFR_RNDN) ? yprec + 1 : yprec;