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
9a688de2
Commit
9a688de2
authored
Dec 07, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
995d565e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-2
Cython/Compiler/TypeInference.py
Cython/Compiler/TypeInference.py
+0
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
9a688de2
...
@@ -4958,13 +4958,12 @@ class CallNode(ExprNode):
...
@@ -4958,13 +4958,12 @@ class CallNode(ExprNode):
alternatives
=
self
.
function
.
entry
.
all_alternatives
()
alternatives
=
self
.
function
.
entry
.
all_alternatives
()
arg_types
=
[
arg
.
infer_type
(
env
)
for
arg
in
self
.
args
]
arg_types
=
[
arg
.
infer_type
(
env
)
for
arg
in
self
.
args
]
func_entry
=
PyrexTypes
.
best_match
(
func_entry
=
PyrexTypes
.
best_match
(
arg_types
,
alternatives
,
self
.
pos
,
env
)
arg_types
,
alternatives
,
None
,
env
)
if
func_entry
:
if
func_entry
:
func_type
=
func_entry
.
type
func_type
=
func_entry
.
type
if
func_type
.
is_ptr
:
if
func_type
.
is_ptr
:
func_type
=
func_type
.
base_type
func_type
=
func_type
.
base_type
return
func_type
.
return_type
return
func_type
.
return_type
return
func_type
.
return_type
return
func_type
.
return_type
elif
func_type
is
type_type
:
elif
func_type
is
type_type
:
if
function
.
is_name
and
function
.
entry
and
function
.
entry
.
type
:
if
function
.
is_name
and
function
.
entry
and
function
.
entry
.
type
:
...
...
Cython/Compiler/TypeInference.py
View file @
9a688de2
...
@@ -475,7 +475,6 @@ class SimpleAssignmentTypeInferer(object):
...
@@ -475,7 +475,6 @@ class SimpleAssignmentTypeInferer(object):
for
assmt
in
entry
.
cf_assignments
]
for
assmt
in
entry
.
cf_assignments
]
new_type
=
spanning_type
(
types
,
entry
.
might_overflow
,
entry
.
pos
,
scope
)
new_type
=
spanning_type
(
types
,
entry
.
might_overflow
,
entry
.
pos
,
scope
)
if
new_type
!=
entry
.
type
:
if
new_type
!=
entry
.
type
:
print
"FOUND"
,
entry
,
entry
.
type
,
new_type
,
type
(
new_type
)
self
.
set_entry_type
(
entry
,
new_type
)
self
.
set_entry_type
(
entry
,
new_type
)
dirty
=
True
dirty
=
True
return
dirty
return
dirty
...
...
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