summaryrefslogtreecommitdiff
path: root/tests/tset_ld.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tset_ld.c')
-rw-r--r--tests/tset_ld.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tset_ld.c b/tests/tset_ld.c
index e3de42851..c1fa390a1 100644
--- a/tests/tset_ld.c
+++ b/tests/tset_ld.c
@@ -58,13 +58,13 @@ Isnan_ld (long double d)
static void
check_set_get (long double d, mpfr_t x)
{
- mp_rnd_t r;
+ int r;
long double e;
int inex;
for (r = 0; r < GMP_RND_MAX; r++)
{
- inex = mpfr_set_ld (x, d, r);
+ inex = mpfr_set_ld (x, d, (mp_rnd_t) r);
if (inex != 0)
{
printf ("Error: mpfr_set_ld should be exact\n");
@@ -73,7 +73,7 @@ check_set_get (long double d, mpfr_t x)
mpfr_dump (x);
exit (1);
}
- e = mpfr_get_ld (x, r);
+ e = mpfr_get_ld (x, (mp_rnd_t) r);
if (e != d && !(Isnan_ld(e) && Isnan_ld(d)))
{
printf ("Error: mpfr_get_ld o mpfr_set_ld <> Id\n");