diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-02-04 20:17:09 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2021-02-04 20:17:09 +0000 |
commit | 9eb6296222043b4cf696edea930466eb695b59e5 (patch) | |
tree | d697b5e305c883e6bbdba0760ce12872544dab55 /tests | |
parent | 82963310fc2af2ff75b527825b909ecf272c719c (diff) | |
download | mpfr-9eb6296222043b4cf696edea930466eb695b59e5.tar.gz |
[tests/tcompound.c] Corrected an error message.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14368 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tcompound.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tcompound.c b/tests/tcompound.c index 2076f6b67..0cee17db9 100644 --- a/tests/tcompound.c +++ b/tests/tcompound.c @@ -201,10 +201,10 @@ check_ieee754 (void) #if GMP_NUMB_BITS >= 64 || MPFR_PREC_BITS >= 64 if (4994322635099777669 <= LONG_MAX) { - i = 4994322635099777669; + i = -4994322635099777669; mpfr_set_ui (x, 1, MPFR_RNDN); - mpfr_compound (y, x, -i, MPFR_RNDN); - mpfr_set_si_2exp (x, 1, -i, MPFR_RNDN); + mpfr_compound (y, x, i, MPFR_RNDN); + mpfr_set_si_2exp (x, 1, i, MPFR_RNDN); if (!mpfr_equal_p (y, x)) { printf ("Error for compound(1,%ld)\n", i); |