summaryrefslogtreecommitdiff
path: root/tests/tcmpabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcmpabs.c')
-rw-r--r--tests/tcmpabs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tcmpabs.c b/tests/tcmpabs.c
index a0a9a9e9c..b3d4c05fe 100644
--- a/tests/tcmpabs.c
+++ b/tests/tcmpabs.c
@@ -65,14 +65,14 @@ main (void)
mpfr_set_prec(xx, 53);
mpfr_set_prec(yy, 200);
- mpfr_set_ui(xx, 1, 0);
- mpfr_set_ui(yy, 1, 0);
+ mpfr_set_ui (xx, 1, (mp_rnd_t) 0);
+ mpfr_set_ui (yy, 1, (mp_rnd_t) 0);
if (mpfr_cmpabs(xx, yy) != 0)
ERROR ("Error in mpfr_cmpabs: 1.0 != 1.0\n");
- mpfr_set_prec(yy, 31);
- mpfr_set_str(xx, "-1.0000000002", 10, 0);
- mpfr_set_ui(yy, 1, 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_cmpabs(xx,yy)>0))
ERROR ("Error in mpfr_cmpabs: not 1.0000000002 > 1.0\n");
mpfr_set_prec(yy, 53);