From 73bad093c0cb013fa51864cae2f559aef6e572ce Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 14 Mar 2009 18:12:20 +0100 Subject: [PATCH] fix annotation of optimised switch statement --- Cython/Compiler/Nodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 4c8224a8..a23d3097 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3692,6 +3692,7 @@ class SwitchCaseNode(StatNode): def generate_execution_code(self, code): for cond in self.conditions: + code.mark_pos(cond.pos) code.putln("case %s:" % cond.calculate_result_code()) self.body.generate_execution_code(code) code.putln("break;") -- 2.26.2