diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-09-08 14:02:13 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-09-08 14:02:13 +0000 |
commit | c26f3d5a91814cd04a03b8690c32bc7ee57a02cc (patch) | |
tree | 2320d62bae3cc4723d30b53dc831b9fc0f3dabb8 /tests | |
parent | f02c20005b67d888f9acc5659401e178ac8cd6b5 (diff) | |
download | mpfr-c26f3d5a91814cd04a03b8690c32bc7ee57a02cc.tar.gz |
[tests/tdiv_ui.c] fixed corner_cases() test
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13162 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tdiv_ui.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tdiv_ui.c b/tests/tdiv_ui.c index 19d0504b4..9666bef11 100644 --- a/tests/tdiv_ui.c +++ b/tests/tdiv_ui.c @@ -379,7 +379,9 @@ corner_cases (int n) mpfr_init2 (t, 2 * GMP_NUMB_BITS); for (i = 0; i < n; i++) { - u = randlimb (); + do + u = randlimb (); + while (u == 0); do v = randlimb (); while (v <= MPFR_LIMB_HIGHBIT); |