From 13e400b3559666b5e584bdf6f8450aad826b43ae Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 22 Mar 2012 15:54:55 -0400 Subject: add creal/cimag macros in complex.h (and use them in the functions defs) --- src/complex/cimagl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/complex/cimagl.c') diff --git a/src/complex/cimagl.c b/src/complex/cimagl.c index d9a0780c..9ec24eee 100644 --- a/src/complex/cimagl.c +++ b/src/complex/cimagl.c @@ -2,6 +2,5 @@ long double (cimagl)(long double complex z) { - union lcomplex u = {z}; - return u.a[1]; + return cimagl(z); } -- cgit v1.2.1