summaryrefslogtreecommitdiff
path: root/src/complex/cimag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/cimag.c')
-rw-r--r--src/complex/cimag.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/complex/cimag.c b/src/complex/cimag.c
index 5e1ad46b..00955641 100644
--- a/src/complex/cimag.c
+++ b/src/complex/cimag.c
@@ -2,6 +2,5 @@
double (cimag)(double complex z)
{
- union dcomplex u = {z};
- return u.a[1];
+ return cimag(z);
}