From: Stefan Behnel Date: Sat, 14 Mar 2009 17:12:20 +0000 (+0100) Subject: fix annotation of optimised switch statement X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=73bad093c0cb013fa51864cae2f559aef6e572ce;p=cython.git fix annotation of optimised switch statement --- 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;")