From 5ff4c25aa04bfd1326edd97400a87bd9f71e8158 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 2 Dec 2008 22:25:37 +0100 Subject: [PATCH] while loop needs temp disposal, too --- Cython/Compiler/Nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 139432f2..41f304c4 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3644,9 +3644,11 @@ class WhileStatNode(LoopNode, StatNode): code.putln( "while (1) {") self.condition.generate_evaluation_code(code) + self.condition.generate_disposal_code(code) code.putln( "if (!%s) break;" % self.condition.result()) + self.condition.free_temps(code) self.body.generate_execution_code(code) code.put_label(code.continue_label) code.putln("}") -- 2.26.2