summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2019-01-05 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2019-01-05 17:22:30 +0100
commit6a11cde78591acc37fe9162bcaf26cde10413436 (patch)
treedf330e39fb6138b32209babf422885b72767ed8a /giscanner
parentaec1c5a3c1206c26c4d0e553558f40ac8a81b68c (diff)
downloadgobject-introspection-6a11cde78591acc37fe9162bcaf26cde10413436.tar.gz
scanner: Merge specifiers and qualifiers when merging basic types.
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/scannerparser.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/giscanner/scannerparser.y b/giscanner/scannerparser.y
index ed4f24fd..29d98b41 100644
--- a/giscanner/scannerparser.y
+++ b/giscanner/scannerparser.y
@@ -218,6 +218,11 @@ set_or_merge_base_type (GISourceType *type,
g_free (type->name);
type->name = name;
+ type->storage_class_specifier |= base->storage_class_specifier;
+ type->type_qualifier |= base->type_qualifier;
+ type->function_specifier |= base->function_specifier;
+ type->is_bitfield |= base->is_bitfield;
+
ctype_free (base);
}
else if (base->type == CTYPE_INVALID)