summaryrefslogtreecommitdiff
path: root/src/abs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/abs.c')
-rw-r--r--src/abs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/abs.c b/src/abs.c
index 68f2c87..bf1e5fd 100644
--- a/src/abs.c
+++ b/src/abs.c
@@ -1,6 +1,6 @@
/* mpc_abs -- Absolute value of a complex number.
-Copyright (C) 2008, 2009 INRIA
+Copyright (C) 2008, 2009, 2011 INRIA
This file is part of GNU MPC.
@@ -24,5 +24,5 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
int
mpc_abs (mpfr_ptr a, mpc_srcptr b, mpfr_rnd_t rnd)
{
- return mpfr_hypot (a, MPC_RE(b), MPC_IM(b), rnd);
+ return mpfr_hypot (a, mpc_realref(b), mpc_imagref(b), rnd);
}