summaryrefslogtreecommitdiff
path: root/src/sub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sub.c')
-rw-r--r--src/sub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sub.c b/src/sub.c
index 57e5bc4..8b8a97d 100644
--- a/src/sub.c
+++ b/src/sub.c
@@ -1,6 +1,6 @@
/* mpc_sub -- Subtract two complex numbers.
-Copyright (C) 2002, 2009 INRIA
+Copyright (C) 2002, 2009, 2011 INRIA
This file is part of GNU MPC.
@@ -25,8 +25,8 @@ mpc_sub (mpc_ptr a, mpc_srcptr b, mpc_srcptr c, mpc_rnd_t rnd)
{
int inex_re, inex_im;
- inex_re = mpfr_sub (MPC_RE(a), MPC_RE(b), MPC_RE(c), MPC_RND_RE(rnd));
- inex_im = mpfr_sub (MPC_IM(a), MPC_IM(b), MPC_IM(c), MPC_RND_IM(rnd));
+ inex_re = mpfr_sub (mpc_realref(a), mpc_realref(b), mpc_realref(c), MPC_RND_RE(rnd));
+ inex_im = mpfr_sub (mpc_imagref(a), mpc_imagref(b), mpc_imagref(c), MPC_RND_IM(rnd));
return MPC_INEX(inex_re, inex_im);
}