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
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):
...
@@ -1383,15 +1383,9 @@ class CReferenceType(CType):
def
assignable_from_resolved_type
(
self
,
other_type
):
def
assignable_from_resolved_type
(
self
,
other_type
):
if
other_type
is
error_type
:
if
other_type
is
error_type
:
return
1
return
1
if
other_type
.
is_ptr
:
elif
other_type
.
is_reference
and
self
.
base_type
==
other_type
.
base_type
:
return
0
return
1
#print self, other_type
elif
other_type
==
self
.
base_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
:
return
1
return
1
else
:
#for now
else
:
#for now
return
0
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