projects
/
free-sw
/
xcb
/
proto
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0212c5e
)
Fix a type size calculation.
author
Eamon Walsh
<ewalsh@tycho.nsa.gov>
Thu, 22 May 2008 02:25:50 +0000
(22:25 -0400)
committer
Eamon Walsh
<ewalsh@moss-charon.epoch.ncsc.mil>
Thu, 22 May 2008 02:25:50 +0000
(22:25 -0400)
xcbgen/types.py
patch
|
blob
|
history
diff --git
a/xcbgen/types.py
b/xcbgen/types.py
index
ce2842f
..
d4b16e2
100644
(file)
--- 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():
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