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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
557b8ed7
Commit
557b8ed7
authored
Jul 25, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix temp result release 'hack' for stack allocated literal lists
parent
4bebe27e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
557b8ed7
...
...
@@ -5453,13 +5453,13 @@ class ListNode(SequenceNode):
error
(
self
.
pos
,
"Cannot coerce list to type '%s'"
%
dst_type
)
return
self
def
release_temp
(
self
,
env
):
def
release_temp
_result
(
self
,
env
):
if
self
.
type
.
is_array
:
# To be valid C++, we must allocate the memory on the stack
# manually and be sure not to reuse it for something else.
pass
else
:
SequenceNode
.
release_temp
(
self
,
env
)
SequenceNode
.
release_temp
_result
(
self
,
env
)
def
calculate_constant_result
(
self
):
if
self
.
mult_factor
:
...
...
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