summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2010-09-22 22:32:34 -0400
committerPeter Harris <pharris@opentext.com>2010-09-22 22:32:51 -0400
commit29cca33b9001961fa2c33bb9d9fe4a9983913fce (patch)
tree41f5bab7cb4a7c0fbfd7b9055fa261c66d56ebbe
parent8c1d2021ca611c1452a8d2ff2a705569e4ebd056 (diff)
Clean up a couple of warnings in xprint
Signed-off-by: Peter Harris <pharris@opentext.com>
-rw-r--r--src/c_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_client.py b/src/c_client.py
index a66c7e3..1f3277a 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -875,7 +875,7 @@ def _c_serialize_helper_fields_variable_size(context, self, field,
# special case: intermixed fixed and variable size fields
if self.var_followed_by_fixed_fields and 'unserialize' == context:
- value = ' %s = xcb_tmp;' % field.c_field_name
+ value = ' %s = (%s *)xcb_tmp;' % (field.c_field_name, field.c_field_type)
temp_vars.append(' %s *%s;' % (field.type.c_type, field.c_field_name))
# special case: switch
if 'unpack' == context: