diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-11-04 18:39:52 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-11-04 18:39:52 +0000 |
commit | 5ad0bccecc2c0aafdc23571a491fccc31171c22c (patch) | |
tree | fbb979252a636e9fc3215e15e12be49ca6d35a95 /tests/tstrtoc.c | |
parent | 18e9d42b59925987d8128096c4a7ea6d49721862 (diff) | |
download | mpc-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/tstrtoc.c')
-rw-r--r-- | tests/tstrtoc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tstrtoc.c b/tests/tstrtoc.c index d0f9aae..77e34ee 100644 --- a/tests/tstrtoc.c +++ b/tests/tstrtoc.c @@ -92,8 +92,8 @@ check_file (const char* file_name) read_mpc_rounding_mode (fp, &rnd); /* 2. convert string at the same precision as the expected result */ - 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_strtoc (got, str, &end, base, rnd); /* 3. compare this result with the expected one */ @@ -145,8 +145,8 @@ check_null (void) mpc_init2 (z, 53); inex = mpc_strtoc (z, NULL, &end, 10, MPC_RNDNN); - if (end != NULL || inex != -1 || mpfr_nan_p (MPC_RE (z)) == 0 - || mpfr_nan_p (MPC_IM (z)) == 0) + if (end != NULL || inex != -1 || mpfr_nan_p (mpc_realref (z)) == 0 + || mpfr_nan_p (mpc_imagref (z)) == 0) { printf ("Error: mpc_strtoc(z, NULL) with a NULL pointer should fail" " and the z value should be set to NaN +I*NaN\ngot "); |