summaryrefslogtreecommitdiff
path: root/src/complex/creal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/creal.c')
-rw-r--r--src/complex/creal.c2
1 files changed, 1 insertions, 1 deletions
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