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
ccd65093
Commit
ccd65093
authored
Dec 18, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid recursive coercion in CoerceToPyTypeNode
parent
d46fa3e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+7
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
ccd65093
...
...
@@ -4932,6 +4932,13 @@ class CoerceToPyTypeNode(CoercionNode):
def
coerce_to_boolean
(
self
,
env
):
return
self
.
arg
.
coerce_to_boolean
(
env
).
coerce_to_temp
(
env
)
def
coerce_to_integer
(
self
,
env
):
# If not already some C integer type, coerce to longint.
if
self
.
arg
.
type
.
is_int
:
return
self
.
arg
else
:
return
self
.
arg
.
coerce_to
(
PyrexTypes
.
c_long_type
,
env
)
def
analyse_types
(
self
,
env
):
# The arg is always already analysed
...
...
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