summaryrefslogtreecommitdiff
path: root/src/c_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_client.py')
-rw-r--r--src/c_client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/c_client.py b/src/c_client.py
index 1f3277a..91719b7 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -925,8 +925,9 @@ def _c_serialize_helper_fields(context, self,
prev_field_was_variable = False
for field in self.fields:
- if not ((field.wire and not field.auto) or field.visible):
- continue
+ if not field.visible:
+ if not ((field.wire and not field.auto) or 'unserialize' == context):
+ continue
# switch/bitcase: fixed size fields must be considered explicitly
if field.type.fixed_size():