summaryrefslogtreecommitdiff
path: root/src/add_fr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/add_fr.c')
-rw-r--r--src/add_fr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/add_fr.c b/src/add_fr.c
index b9f2e9f..ea7b595 100644
--- a/src/add_fr.c
+++ b/src/add_fr.c
@@ -1,6 +1,6 @@
/* mpc_add_fr -- Add a complex number and a floating-point number.
-Copyright (C) 2002, 2009 INRIA
+Copyright (C) 2002, 2009, 2011 INRIA
This file is part of GNU MPC.
@@ -26,8 +26,8 @@ mpc_add_fr (mpc_ptr a, mpc_srcptr b, mpfr_srcptr c, mpc_rnd_t rnd)
{
int inex_re, inex_im;
- inex_re = mpfr_add (MPC_RE(a), MPC_RE(b), c, MPC_RND_RE(rnd));
- inex_im = mpfr_set (MPC_IM(a), MPC_IM(b), MPC_RND_IM(rnd));
+ inex_re = mpfr_add (mpc_realref(a), mpc_realref(b), c, MPC_RND_RE(rnd));
+ inex_im = mpfr_set (mpc_imagref(a), mpc_imagref(b), MPC_RND_IM(rnd));
return MPC_INEX(inex_re, inex_im);
}