c_client.py: make condition easier to follow in _c_complex()

Signed-off-by: Ran Benita <ran234@gmail.com>
Reviewed-by: Christian Linhart <chris@demorecorder.com>
This commit is contained in:
Ran Benita 2014-10-12 21:58:20 +03:00 committed by Christian Linhart
parent f9f925107e
commit a90be9955d

View File

@ -2047,9 +2047,7 @@ def _c_complex(self, force_packed = False):
maxtypelen = 0 maxtypelen = 0
for field in self.fields: for field in self.fields:
if not field.type.fixed_size() and not self.is_switch and not self.is_union: if field.wire and (field.type.fixed_size() or self.is_switch or self.is_union):
continue
if field.wire:
struct_fields.append(field) struct_fields.append(field)
for field in struct_fields: for field in struct_fields: