diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-02-03 15:23:13 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-02-03 15:23:13 +0000 |
commit | ad1bdf435587ff2e8b5e85b50984970bea8134ad (patch) | |
tree | fda3190d78279974b3cab4a632801ad36028dd8a | |
parent | cd4a40e1f97dcde327dccb792a531cfe23c09415 (diff) | |
download | mpfr-ad1bdf435587ff2e8b5e85b50984970bea8134ad.tar.gz |
[tests/tlog2p1.c] set the precision locally to one test
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14349 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/tlog2p1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tlog2p1.c b/tests/tlog2p1.c index 0e37b60f1..85e797753 100644 --- a/tests/tlog2p1.c +++ b/tests/tlog2p1.c @@ -32,7 +32,7 @@ special (void) mpfr_t x; int inex; - mpfr_init2 (x, 32); + mpfr_init2 (x, MPFR_PREC_MIN); mpfr_set_nan (x); mpfr_clear_flags (); @@ -76,9 +76,10 @@ special (void) MPFR_ASSERTN (__gmpfr_flags == MPFR_FLAGS_NAN); /* include one hard-coded test */ + mpfr_set_prec (x, 32); mpfr_set_ui (x, 17, MPFR_RNDN); inex = mpfr_log2p1 (x, x, MPFR_RNDN); - MPFR_ASSERTN (mpfr_cmp_ui_2exp (x, 1119355719, -28) == 0); + MPFR_ASSERTN (mpfr_cmp_ui_2exp (x, 1119355719UL, -28) == 0); MPFR_ASSERTN (inex < 0); mpfr_clear (x); |