Commit c50cd96e authored by Robert Bradshaw's avatar Robert Bradshaw

Merge branch '0.20.x'

parents 005d38d5 d914e150
...@@ -2879,7 +2879,7 @@ class CStructOrUnionType(CType): ...@@ -2879,7 +2879,7 @@ class CStructOrUnionType(CType):
if self._convert_to_py_code is None: if self._convert_to_py_code is None:
for member in self.scope.var_entries: for member in self.scope.var_entries:
if (not member.type.to_py_function or if (not member.type.to_py_function and
not member.type.create_to_py_utility_code(env)): not member.type.create_to_py_utility_code(env)):
self.to_py_function = None self.to_py_function = None
self._convert_to_py_code = False self._convert_to_py_code = False
...@@ -2898,7 +2898,7 @@ class CStructOrUnionType(CType): ...@@ -2898,7 +2898,7 @@ class CStructOrUnionType(CType):
if self._convert_from_py_code is None: if self._convert_from_py_code is None:
for member in self.scope.var_entries: for member in self.scope.var_entries:
if (not member.type.from_py_function or if (not member.type.from_py_function and
not member.type.create_from_py_utility_code(env)): not member.type.create_from_py_utility_code(env)):
self.from_py_function = None self.from_py_function = None
self._convert_from_py_code = False self._convert_from_py_code = False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment