aboutsummaryrefslogtreecommitdiff
path: root/decl.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-24 22:28:52 -0700
committerMichael Forney <mforney@mforney.org>2019-04-24 22:32:22 -0700
commita71a7975c95b794983c4b83a26981c7b4d7f7c82 (patch)
treee8412ab368a931c8df30faab09c64e6283aae14f /decl.c
parent0e9f74cb67f2227f888e9a127624f77d83aee270 (diff)
Use a common member for expression base
Diffstat (limited to 'decl.c')
-rw-r--r--decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decl.c b/decl.c
index 6355689..3ebf51a 100644
--- a/decl.c
+++ b/decl.c
@@ -348,7 +348,7 @@ declspecs(struct scope *s, enum storageclass *sc, enum funcspec *fs, int *align)
if (!t) {
e = expr(s);
if (e->decayed)
- e = e->unary.base;
+ e = e->base;
t = e->type;
tq |= e->qual;
delexpr(e);