diff options
Diffstat (limited to 'src/complex')
| -rw-r--r-- | src/complex/cimag.c | 2 | ||||
| -rw-r--r-- | src/complex/creal.c | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/src/complex/creal.c b/src/complex/creal.c index eac2576e..2e9923ed 100644 --- a/src/complex/creal.c +++ b/src/complex/creal.c @@ -9,7 +9,7 @@ TYPE TGFN(creal)(TYPE complex z) complex TYPE c; TYPE f[2]; } u = { .c = z }; - return z[0]; + return u.f[0]; } /*d |
