Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/facebook/luaffifb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Jensen <jjensen@workspacewhiz.com>2013-05-04 10:04:31 +0400
committerJoshua Jensen <jjensen@workspacewhiz.com>2013-05-04 10:04:31 +0400
commit12428b9ef84a157a3119df1655ed19447ad5c378 (patch)
tree61ed9be8b18f331aad041c09419a28bbfbde2c0d /parser.c
parentcf56462589ab5ad74ef69321c76914bd4c2f4ce6 (diff)
Fix a const preservation issue when using typedefs
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 4f56c15..aa5fb63 100644
--- a/parser.c
+++ b/parser.c
@@ -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) {