From: Eamon Walsh Date: Thu, 22 May 2008 02:25:50 +0000 (-0400) Subject: Fix a type size calculation. X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=9ae5448fc231a008fa02eb704fd034de099cf2bb;p=free-sw%2Fxcb%2Fproto Fix a type size calculation. --- 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