diff options
Diffstat (limited to 'src/complex/cimag.c')
| -rw-r--r-- | src/complex/cimag.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/complex/cimag.c b/src/complex/cimag.c index 414ecdba..c08ae122 100644 --- a/src/complex/cimag.c +++ b/src/complex/cimag.c @@ -5,7 +5,11 @@ TYPE TGFN(cimag)(TYPE complex z) { - return 0.0; + union { + complex TYPE c; + TYPE f[2]; + } u = { .c = z }; + return z[1]; } /*d |
