summaryrefslogtreecommitdiff
path: root/tests/mpf
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2015-10-29 08:03:07 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2015-10-29 08:03:07 +0100
commit765613db129359ef4f517524309db3f971496e49 (patch)
tree31aa996a10b8186c8a5671912f57dc9ff3202f16 /tests/mpf
parentd084b8b837c56f5c4ca9c43afd109e6a0fd7d3eb (diff)
downloadgmp-765613db129359ef4f517524309db3f971496e49.tar.gz
tests/mpf/t-pow_ui.c: Use the reference to check for size.
Diffstat (limited to 'tests/mpf')
-rw-r--r--tests/mpf/t-pow_ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mpf/t-pow_ui.c b/tests/mpf/t-pow_ui.c
index 214c9b781..634544d0e 100644
--- a/tests/mpf/t-pow_ui.c
+++ b/tests/mpf/t-pow_ui.c
@@ -43,13 +43,13 @@ check_data (void)
{
mpf_pow_ui (r, b1, e);
- if (mpf_cmp_ui (r, ~CNST_LIMB(0)) > 0)
- break;
-
if (mpf_cmp (r, r2))
abort ();
mpf_mul_ui (r2, r2, b);
+
+ if (mpf_cmp_ui (r2, GMP_NUMB_MAX) > 0)
+ break;
}
}