summaryrefslogtreecommitdiff
path: root/tests/tio_str.c
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-11-04 18:39:52 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-11-04 18:39:52 +0000
commit5ad0bccecc2c0aafdc23571a491fccc31171c22c (patch)
treefbb979252a636e9fc3215e15e12be49ca6d35a95 /tests/tio_str.c
parent18e9d42b59925987d8128096c4a7ea6d49721862 (diff)
downloadmpc-5ad0bccecc2c0aafdc23571a491fccc31171c22c.tar.gz
replaced MPC_RE by mpc_realref and MPC_IM by mpc_imagref everywhere
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1112 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tio_str.c')
-rw-r--r--tests/tio_str.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c
index 933ba3f..a169f89 100644
--- a/tests/tio_str.c
+++ b/tests/tio_str.c
@@ -78,8 +78,8 @@ check_file (const char* file_name)
/* 2. read string at the same precision as the expected result */
while (nextchar != '"')
nextchar = getc (fp);
- mpfr_set_prec (MPC_RE (got), MPC_PREC_RE (expected));
- mpfr_set_prec (MPC_IM (got), MPC_PREC_IM (expected));
+ mpfr_set_prec (mpc_realref (got), MPC_PREC_RE (expected));
+ mpfr_set_prec (mpc_imagref (got), MPC_PREC_IM (expected));
inex = mpc_inp_str (got, fp, &size, base, rnd);
/* 3. compare this result with the expected one */
@@ -230,8 +230,8 @@ main (void)
mpc_set_si_si (x, -1, 1, MPC_RNDNN);
check_io_str (z, x);
- mpfr_set_inf (MPC_RE(x), -1);
- mpfr_set_inf (MPC_IM(x), +1);
+ mpfr_set_inf (mpc_realref(x), -1);
+ mpfr_set_inf (mpc_imagref(x), +1);
check_io_str (z, x);
test_default_random (x, -1024, 1024, 128, 25);