diff options
author | Joshua Jensen <jjensen@workspacewhiz.com> | 2013-05-04 10:04:31 +0400 |
---|---|---|
committer | Joshua Jensen <jjensen@workspacewhiz.com> | 2013-05-04 10:04:31 +0400 |
commit | 12428b9ef84a157a3119df1655ed19447ad5c378 (patch) | |
tree | 61ed9be8b18f331aad041c09419a28bbfbde2c0d /parser.c | |
parent | cf56462589ab5ad74ef69321c76914bd4c2f4ce6 (diff) |
Fix a const preservation issue when using typedefs
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -691,7 +691,7 @@ static void instantiate_typedef(struct parser* P, struct ctype* tt, const struct struct ctype pt = *tt; *tt = *ft; - tt->const_mask = pt.const_mask; + tt->const_mask |= pt.const_mask; tt->is_packed = pt.is_packed; if (tt->is_packed) { |