summaryrefslogtreecommitdiff
path: root/tests/tcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcmp.c')
-rw-r--r--tests/tcmp.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/tcmp.c b/tests/tcmp.c
index f40e9dbe1..725eec599 100644
--- a/tests/tcmp.c
+++ b/tests/tcmp.c
@@ -1,6 +1,6 @@
/* Test file for mpfr_cmp.
-Copyright 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+Copyright 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -76,23 +76,24 @@ main (void)
exit (1);
}
- mpfr_set_prec(xx, 53); mpfr_set_prec(yy, 200);
- mpfr_set_ui(xx, 1, 0);
- mpfr_set_ui(yy, 1, 0);
- if (mpfr_cmp(xx, yy) != 0)
+ mpfr_set_prec (xx, 53);
+ mpfr_set_prec (yy, 200);
+ mpfr_set_ui (xx, 1, (mp_rnd_t) 0);
+ mpfr_set_ui (yy, 1, (mp_rnd_t) 0);
+ if (mpfr_cmp (xx, yy) != 0)
{
printf ("Error in mpfr_cmp: 1.0 != 1.0\n");
exit (1);
}
- mpfr_set_prec(yy, 31);
- mpfr_set_str(xx, "1.0000000002", 10, 0);
- mpfr_set_ui(yy, 1, 0);
- if (!(mpfr_cmp(xx,yy)>0))
+ mpfr_set_prec (yy, 31);
+ mpfr_set_str (xx, "1.0000000002", 10, (mp_rnd_t) 0);
+ mpfr_set_ui (yy, 1, (mp_rnd_t) 0);
+ if (!(mpfr_cmp (xx,yy)>0))
{
printf ("Error in mpfr_cmp: not 1.0000000002 > 1.0\n");
exit (1);
}
- mpfr_set_prec(yy, 53);
+ mpfr_set_prec (yy, 53);
/* bug found by Gerardo Ballabio */
mpfr_set_ui(xx, 0, GMP_RNDN);