summaryrefslogtreecommitdiff
path: root/src/init3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init3.c')
-rw-r--r--src/init3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init3.c b/src/init3.c
index bd291e8..69f91b2 100644
--- a/src/init3.c
+++ b/src/init3.c
@@ -1,6 +1,6 @@
/* mpc_init3 -- Initialize a complex variable with given precisions.
-Copyright (C) 2002, 2009 INRIA
+Copyright (C) 2002, 2009, 2011 INRIA
This file is part of GNU MPC.
@@ -23,6 +23,6 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
void
mpc_init3 (mpc_t x, mpfr_prec_t prec_re, mpfr_prec_t prec_im)
{
- mpfr_init2 (MPC_RE(x), prec_re);
- mpfr_init2 (MPC_IM(x), prec_im);
+ mpfr_init2 (mpc_realref(x), prec_re);
+ mpfr_init2 (mpc_imagref(x), prec_im);
}