From e190f1e030abc3935dfc92b3e7b339a42f64a746 Mon Sep 17 00:00:00 2001 From: Daniel Martin Date: Wed, 21 Aug 2013 23:42:59 +0200 Subject: [PATCH] c_client.py: Fix _sizeof() functions --- src/c_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/c_client.py b/src/c_client.py index 7568757..4790f29 100644 --- a/src/c_client.py +++ b/src/c_client.py @@ -1065,6 +1065,8 @@ def _c_serialize_helper(context, complex_type, self.fields[0].type.fixed_size()): code_lines.append('%s xcb_block_len += sizeof(%s);' % (space, self.c_type)) code_lines.append('%s xcb_tmp += xcb_block_len;' % space) + code_lines.append('%s xcb_buffer_len += xcb_block_len;' % space) + code_lines.append('%s xcb_block_len = 0;' % space) # probably not needed #_c_serialize_helper_insert_padding(context, code_lines, space, False) -- 1.8.3.3