Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
d914e150
Commit
d914e150
authored
Apr 07, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix struct conversion.
parent
0e6e38ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+2
-2
No files found.
Cython/Compiler/PyrexTypes.py
View file @
d914e150
...
...
@@ -2879,7 +2879,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
or
if
(
not
member
.
type
.
to_py_function
and
not
member
.
type
.
create_to_py_utility_code
(
env
)):
self
.
to_py_function
=
None
self
.
_convert_to_py_code
=
False
...
...
@@ -2898,7 +2898,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
or
if
(
not
member
.
type
.
from_py_function
and
not
member
.
type
.
create_from_py_utility_code
(
env
)):
self
.
from_py_function
=
None
self
.
_convert_from_py_code
=
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment