Commit 7004806a authored by Stefan Behnel's avatar Stefan Behnel

utility code construction for struct conversion requires constructing the...

utility code construction for struct conversion requires constructing the field conversion functions as well

--HG--
extra : transplant_source : %A3%81%87%E2%0A%20%DA%7D%7E%5B%A0%9B%80i%F9%8Az%9B%F3%DC
parent 71d041f6
......@@ -2880,8 +2880,7 @@ class CStructOrUnionType(CType):
if self._convert_to_py_code is None:
for member in self.scope.var_entries:
if (not member.type.to_py_function and
not member.type.create_to_py_utility_code(env)):
if not member.type.create_to_py_utility_code(env):
self.to_py_function = None
self._convert_to_py_code = False
return False
......@@ -2900,8 +2899,7 @@ class CStructOrUnionType(CType):
if self._convert_from_py_code is None:
for member in self.scope.var_entries:
if (not member.type.from_py_function and
not member.type.create_from_py_utility_code(env)):
if not member.type.create_from_py_utility_code(env):
self.from_py_function = None
self._convert_from_py_code = False
return 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