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
Gwenaël Samain
cython
Commits
34c4dad1
Commit
34c4dad1
authored
Aug 01, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make void* the generic spanning type of all pointer types
parent
5b7aaa54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+3
-3
No files found.
Cython/Compiler/PyrexTypes.py
View file @
34c4dad1
...
@@ -3733,9 +3733,6 @@ def independent_spanning_type(type1, type2):
...
@@ -3733,9 +3733,6 @@ def independent_spanning_type(type1, type2):
return
py_object_type
return
py_object_type
span_type
=
_spanning_type
(
type1
,
type2
)
span_type
=
_spanning_type
(
type1
,
type2
)
if
span_type
is
None
:
if
span_type
is
None
:
if
type1
.
is_ptr
and
type2
.
is_ptr
:
# incompatible pointers, void* will do as a result
return
c_void_ptr_type
return
error_type
return
error_type
return
span_type
return
span_type
...
@@ -3777,6 +3774,9 @@ def _spanning_type(type1, type2):
...
@@ -3777,6 +3774,9 @@ def _spanning_type(type1, type2):
# external types are unsafe, so we use PyObject instead
# external types are unsafe, so we use PyObject instead
return
py_object_type
return
py_object_type
return
type2
return
type2
elif
type1
.
is_ptr
and
type2
.
is_ptr
:
# incompatible pointers, void* will do as a result
return
c_void_ptr_type
else
:
else
:
return
None
return
None
...
...
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