Skip to content

Commit

Permalink
fix temp result release 'hack' for stack allocated literal lists
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Jul 25, 2012
1 parent 4bebe27 commit 557b8ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cython/Compiler/ExprNodes.py
Expand Up @@ -5453,13 +5453,13 @@ def coerce_to(self, dst_type, env):
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:
Expand Down

0 comments on commit 557b8ed

Please sign in to comment.