summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libm/complex/cargf.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 62e26326a..32f8ad194 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-25 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libm/complex/cargf.c: Use crealf instead of creal.
+
2010-11-19 Andy Koppe <andy.koppe@gmail.com>
* libc/locale/locale.c (loadlocale): Recognise the "cjknarrow"
diff --git a/newlib/libm/complex/cargf.c b/newlib/libm/complex/cargf.c
index 74bfb84d2..1683d2195 100644
--- a/newlib/libm/complex/cargf.c
+++ b/newlib/libm/complex/cargf.c
@@ -15,5 +15,5 @@ float
cargf(float complex z)
{
- return atan2f( cimagf(z), creal(z) );
+ return atan2f( cimagf(z), crealf(z) );
}