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
41ab9f0b
Commit
41ab9f0b
authored
Oct 30, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix subtle error in new temp allocation.
parent
cd4d9281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+5
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
41ab9f0b
...
@@ -395,7 +395,7 @@ class ExprNode(Node):
...
@@ -395,7 +395,7 @@ class ExprNode(Node):
self
.
result_code
=
None
self
.
result_code
=
None
if
debug_temp_alloc
:
if
debug_temp_alloc
:
print
(
"%s Allocated result %s"
%
(
self
,
self
.
result_code
))
print
(
"%s Allocated result %s"
%
(
self
,
self
.
result_code
))
def
target_code
(
self
):
def
target_code
(
self
):
# Return code fragment for use as LHS of a C assignment.
# Return code fragment for use as LHS of a C assignment.
return
self
.
calculate_result_code
()
return
self
.
calculate_result_code
()
...
@@ -599,7 +599,10 @@ class NewTempExprNode(ExprNode):
...
@@ -599,7 +599,10 @@ class NewTempExprNode(ExprNode):
assert
result
is
None
assert
result
is
None
def
release_temp
(
self
,
env
):
def
release_temp
(
self
,
env
):
pass
if
self
.
is_temp
:
pass
else
:
self
.
release_subexpr_temps
(
env
)
def
pre_generate_result_code
(
self
,
code
):
def
pre_generate_result_code
(
self
,
code
):
if
self
.
is_temp
:
if
self
.
is_temp
:
...
...
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