diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2014-04-12 09:21:37 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2014-04-12 09:21:37 +0200 |
commit | 7004806a1fe4b9511a42d33389f6b9f6283918fa (patch) | |
tree | e2e7f8a9aaf33991c29d93deed3da57b7dcc0557 | |
parent | 71d041f6d8084c8fa3fbf489f7fdb10cd27ce3a4 (diff) | |
download | cython-7004806a1fe4b9511a42d33389f6b9f6283918fa.tar.gz |
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
-rw-r--r-- | Cython/Compiler/PyrexTypes.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 604364c14..27d8b2344 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -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 |