aboutsummaryrefslogtreecommitdiff
path: root/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'decl.c')
-rw-r--r--decl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/decl.c b/decl.c
index 987d6fa..665752b 100644
--- a/decl.c
+++ b/decl.c
@@ -643,7 +643,8 @@ addmember(struct structbuilder *b, struct type *mt, char *name, int align, uint6
assert(mt->align > 0);
if (name || width == -1) {
m = xmalloc(sizeof(*m));
- m->type = mt;
+ m->qual = QUALNONE;
+ m->type = typeunqual(mt, &m->qual);
m->name = name;
m->next = NULL;
*b->last = m;