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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/complex/cimag.c b/src/complex/cimag.c
index c08ae122..46d5c0db 100644
--- a/src/complex/cimag.c
+++ b/src/complex/cimag.c
@@ -9,7 +9,7 @@ TYPE TGFN(cimag)(TYPE complex z)
complex TYPE c;
TYPE f[2];
} u = { .c = z };
- return z[1];
+ return u.f[1];
}
/*d