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
Kirill Smelkov
cython
Commits
7de6fd50
Commit
7de6fd50
authored
Jan 14, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some reference type refinements.
parent
0842f603
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+3
-9
No files found.
Cython/Compiler/PyrexTypes.py
View file @
7de6fd50
...
...
@@ -1383,15 +1383,9 @@ class CReferenceType(CType):
def
assignable_from_resolved_type
(
self
,
other_type
):
if
other_type
is
error_type
:
return
1
if
other_type
.
is_ptr
:
return
0
#print self, other_type
#if other_type.base_type == self.base_type:
# return 1
#else:
# pass
#TODO: should send a warning message: initialization from incompatible pointer type (in C/C++)
if
other_type
==
self
.
base_type
:
elif
other_type
.
is_reference
and
self
.
base_type
==
other_type
.
base_type
:
return
1
elif
other_type
==
self
.
base_type
:
return
1
else
:
#for now
return
0
...
...
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