summaryrefslogtreecommitdiff
path: root/tests/tadd_fr.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tadd_fr.c')
-rw-r--r--tests/tadd_fr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tadd_fr.c b/tests/tadd_fr.c
index d5ed163..0f1a5cf 100644
--- a/tests/tadd_fr.c
+++ b/tests/tadd_fr.c
@@ -1,6 +1,6 @@
/* tadd_fr -- test file for mpc_add_fr.
-Copyright (C) 2008, 2010 INRIA
+Copyright (C) 2008, 2010, 2012 INRIA
This file is part of GNU MPC.
@@ -37,7 +37,7 @@ check_ternary_value (mpfr_prec_t prec_max, mpfr_prec_t step)
mpfr_set_prec (f, prec);
mpc_set_ui (z, 1, MPC_RNDNN);
- mpfr_set_ui (f, 1, GMP_RNDN);
+ mpfr_set_ui (f, 1, MPFR_RNDN);
if (mpc_add_fr (z, z, f, MPC_RNDNZ))
{
printf ("Error in mpc_add_fr: 1+1 should be exact\n");
@@ -45,7 +45,7 @@ check_ternary_value (mpfr_prec_t prec_max, mpfr_prec_t step)
}
mpc_set_ui (z, 1, MPC_RNDNN);
- mpc_mul_2exp (z, z, (unsigned long int) prec, MPC_RNDNN);
+ mpc_mul_2ui (z, z, (unsigned long int) prec, MPC_RNDNN);
if (mpc_add_fr (z, z, f, MPC_RNDNN) == 0)
{
fprintf (stderr, "Error in mpc_add_fr: 2^prec+1 cannot be exact\n");