[Xcb-commit] libxcb: src

Christian Linhart clinhart at kemper.freedesktop.org
Sun Mar 15 04:26:00 PDT 2015


 src/c_client.py |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit a90be9955d2c5a635f791d44db1154633b9d3322
Author: Ran Benita <ran234 at gmail.com>
Date:   Sun Oct 12 21:58:20 2014 +0300

    c_client.py: make condition easier to follow in _c_complex()
    
    Signed-off-by: Ran Benita <ran234 at gmail.com>
    Reviewed-by: Christian Linhart <chris at demorecorder.com>

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:


More information about the xcb-commit mailing list