summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2008-05-21 22:25:50 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2008-05-21 22:25:50 -0400
commit9ae5448fc231a008fa02eb704fd034de099cf2bb (patch)
tree123c4b1d493b694ea5d004fead254983face2481
parent0212c5ea88f4387a1a200ef80b2e844d01ace470 (diff)
Fix a type size calculation.
-rw-r--r--xcbgen/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xcbgen/types.py b/xcbgen/types.py
index ce2842f..d4b16e2 100644
--- a/xcbgen/types.py
+++ b/xcbgen/types.py
@@ -318,7 +318,7 @@ class ComplexType(Type):
if not m.wire:
continue
if m.type.fixed_size():
- self.size = self.size + m.type.size
+ self.size = self.size + (m.type.size * m.type.nmemb)
else:
self.size = None
break