summaryrefslogtreecommitdiff
path: root/tests/tsech.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tsech.c')
-rw-r--r--tests/tsech.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tsech.c b/tests/tsech.c
index f3a4595eb..b4d170356 100644
--- a/tests/tsech.c
+++ b/tests/tsech.c
@@ -121,13 +121,13 @@ overflowed_sech0 (void)
{
mpfr_set_si_2exp (x, i, -512 * ABS (i), GMP_RNDN);
mpfr_clear_flags ();
- inex = mpfr_sech (x, x, rnd);
+ inex = mpfr_sech (x, x, (mp_rnd_t) rnd);
if ((i == 0 || emax < 0 || rnd == GMP_RNDN || rnd == GMP_RNDU) &&
! mpfr_overflow_p ())
{
printf ("Error in overflowed_sech0 (i = %d, rnd = %s):\n"
" The overflow flag is not set.\n",
- i, mpfr_print_rnd_mode (rnd));
+ i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
err = 1;
}
if (rnd == GMP_RNDZ || rnd == GMP_RNDD)
@@ -136,13 +136,13 @@ overflowed_sech0 (void)
{
printf ("Error in overflowed_sech0 (i = %d, rnd = %s):\n"
" The inexact value must be negative.\n",
- i, mpfr_print_rnd_mode (rnd));
+ i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
err = 1;
}
if (! mpfr_equal_p (x, y))
{
printf ("Error in overflowed_sech0 (i = %d, rnd = %s):\n"
- " Got ", i, mpfr_print_rnd_mode (rnd));
+ " Got ", i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
mpfr_print_binary (x);
printf (" instead of 0.11111111E%d.\n", emax);
err = 1;
@@ -154,13 +154,13 @@ overflowed_sech0 (void)
{
printf ("Error in overflowed_sech0 (i = %d, rnd = %s):\n"
" The inexact value must be positive.\n",
- i, mpfr_print_rnd_mode (rnd));
+ i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
err = 1;
}
if (! (mpfr_inf_p (x) && MPFR_SIGN (x) > 0))
{
printf ("Error in overflowed_sech0 (i = %d, rnd = %s):\n"
- " Got ", i, mpfr_print_rnd_mode (rnd));
+ " Got ", i, mpfr_print_rnd_mode ((mp_rnd_t) rnd));
mpfr_print_binary (x);
printf (" instead of +Inf.\n");
err = 1;