diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-27 19:18:30 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-27 19:18:30 -0500 |
| commit | 3aacd9ae44c93af2e83bb375e0f15555ebe373e0 (patch) | |
| tree | 5b862c72f6009488b9745ca833055e4adb588cfc | |
| parent | e1477898d0203dae4b2fe9ad62998bc27d4b4fc9 (diff) | |
correct return
| -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 |
