Fix a type size calculation.
authorEamon Walsh <ewalsh@tycho.nsa.gov>
Thu, 22 May 2008 02:25:50 +0000 (22:25 -0400)
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>
Thu, 22 May 2008 02:25:50 +0000 (22:25 -0400)
xcbgen/types.py

index ce2842f..d4b16e2 100644 (file)
@@ -318,7 +318,7 @@ class ComplexType(Type):
             if not m.wire:
                 continue
             if m.type.fixed_size():
             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
             else:
                 self.size = None
                 break