summaryrefslogtreecommitdiff
path: root/src/c_client.py
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-10-12 21:58:20 +0300
committerChristian Linhart <chris@demorecorder.com>2015-03-15 12:25:58 +0100
commita90be9955d2c5a635f791d44db1154633b9d3322 (patch)
treeaabb98972303714661096e869997e5fe3b101872 /src/c_client.py
parentf9f925107e37e0c9a0ed8220ee3a23f584e3b2ec (diff)
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>
Diffstat (limited to 'src/c_client.py')
-rw-r--r--src/c_client.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/c_client.py b/src/c_client.py
index 78cc744..e55fc3c 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -2047,9 +2047,7 @@ def _c_complex(self, force_packed = False):
maxtypelen = 0
for field in self.fields:
- if not field.type.fixed_size() and not self.is_switch and not self.is_union:
- continue
- if field.wire:
+ if field.wire and (field.type.fixed_size() or self.is_switch or self.is_union):
struct_fields.append(field)
for field in struct_fields: