diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-03-22 15:54:55 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-03-22 15:54:55 -0400 |
commit | 13e400b3559666b5e584bdf6f8450aad826b43ae (patch) | |
tree | fb19a9f228b2a78dc8e8afc8f7d3439b0865c736 /src/complex/cimag.c | |
parent | 132f0a00831d3b64cc6ae35df69d6865516c64b5 (diff) | |
download | musl-13e400b3559666b5e584bdf6f8450aad826b43ae.tar.gz |
add creal/cimag macros in complex.h (and use them in the functions defs)
Diffstat (limited to 'src/complex/cimag.c')
-rw-r--r-- | src/complex/cimag.c | 3 |
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); } |