[libxcb,18/18] c_client.py: make condition easier to follow in _c_complex()

Submitted by Ran Benita on Oct. 12, 2014, 6:58 p.m.

Details

Message ID 1413140300-20075-19-git-send-email-ran234@gmail.com
State Accepted
Headers show

Not browsing as part of any series.

Commit Message

Ran Benita Oct. 12, 2014, 6:58 p.m.
Signed-off-by: Ran Benita <ran234@gmail.com>
---
 src/c_client.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/c_client.py b/src/c_client.py
index bb2de13..d77c836 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -1716,9 +1716,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: