summaryrefslogtreecommitdiff
path: root/tests/tcosh.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-05-06 09:11:20 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-05-06 09:11:20 +0000
commit0da1a828505078b5321be43088f48b759761605d (patch)
treef44c5f60880f69067b969132ca491e20d7b54533 /tests/tcosh.c
parentd24452598075fdc72a8bb87e246e276f0b8cd41b (diff)
downloadmpfr-0da1a828505078b5321be43088f48b759761605d.tar.gz
Fix overflow bug.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2904 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcosh.c')
-rw-r--r--tests/tcosh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tcosh.c b/tests/tcosh.c
index c48042ed5..d48a4ed68 100644
--- a/tests/tcosh.c
+++ b/tests/tcosh.c
@@ -134,6 +134,9 @@ special_overflow (void)
exit (1);
}
+ mpfr_set_emin (MPFR_EMIN_MIN);
+ mpfr_set_emax (MPFR_EMAX_MAX);
+
mpfr_set_str_binary (x, "0.101100100000000000110100E1000000");
mpfr_cosh (y, x, GMP_RNDN);
if (!mpfr_inf_p(y))
@@ -145,8 +148,6 @@ special_overflow (void)
mpfr_clear (y);
mpfr_clear (x);
- mpfr_set_emin (MPFR_EMIN_MIN);
- mpfr_set_emax (MPFR_EMAX_MAX);
}
int