summaryrefslogtreecommitdiff
path: root/tests/troot.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/troot.c')
-rw-r--r--tests/troot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/troot.c b/tests/troot.c
index 291056d38..c70816241 100644
--- a/tests/troot.c
+++ b/tests/troot.c
@@ -380,7 +380,7 @@ cmp_pow (void)
int inex1, inex2;
tests_default_random (x, 0, __gmpfr_emin, __gmpfr_emax, 1);
- rnd = RND_RAND ();
+ do rnd = RND_RAND (); while (rnd == MPFR_RNDF);
mpfr_set_ui_2exp (y1, 1, -h, MPFR_RNDN);
mpfr_clear_flags ();
inex1 = mpfr_pow (y1, x, y1, rnd);