summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xcbgen/xtypes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/xcbgen/xtypes.py b/xcbgen/xtypes.py
index 0fa420b..8a9d130 100644
--- a/xcbgen/xtypes.py
+++ b/xcbgen/xtypes.py
@@ -333,6 +333,9 @@ class ListType(Type):
self.member.resolve(module)
self.expr.resolve(module, self.parents)
+ # resolve() could have changed the size (ComplexType starts with size 0)
+ self.size = self.member.size if self.member.fixed_size() else None
+
self.required_start_align = self.member.required_start_align
# Find my length field again. We need the actual Field object in the expr.