diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-21 07:21:29 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-12-21 07:21:29 +0000 |
commit | 9d700baff8ee683dcda3c34b399158b5579526b3 (patch) | |
tree | 3d9eb55c87c461109eda8dbbf25fbacd2a0b7ece /tests/thypot.c | |
parent | 4f1a4d1c0db3b1da50657a8c8ec70b12750c9bb4 (diff) | |
download | mpfr-9d700baff8ee683dcda3c34b399158b5579526b3.tar.gz |
[tests/thypot.c] fixed bug20171221()
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12033 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/thypot.c')
-rw-r--r-- | tests/thypot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/thypot.c b/tests/thypot.c index 64c98de99..481f55d24 100644 --- a/tests/thypot.c +++ b/tests/thypot.c @@ -316,15 +316,15 @@ bug20171221 (void) { mpfr_t x, u, y; int inex; - mpfr_exp_t emin; + mpfr_exp_t emax; mpfr_init2 (x, 12); mpfr_init2 (u, 12); mpfr_init2 (y, 11); mpfr_set_str_binary (x, "0.111111111110E0"); mpfr_set_str_binary (u, "0.111011110100E-177"); - emin = mpfr_get_emin (); - mpfr_set_emin (0); + emax = mpfr_get_emin (); + mpfr_set_emax (0); mpfr_clear_flags (); inex = mpfr_hypot (y, x, u, MPFR_RNDU); mpfr_dump (y); @@ -332,7 +332,7 @@ bug20171221 (void) MPFR_ASSERTN(inex > 0); MPFR_ASSERTN(mpfr_inexflag_p ()); MPFR_ASSERTN(mpfr_overflow_p ()); - mpfr_set_emin (emin); + mpfr_set_emax (emax); mpfr_clear (x); mpfr_clear (u); mpfr_clear (y); |