projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
909b184
)
fix annotation of optimised switch statement
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 14 Mar 2009 17:12:20 +0000
(18:12 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 14 Mar 2009 17:12:20 +0000
(18:12 +0100)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 4c8224a8416fad8acc7d8b92989fbdd8cc561844..a23d30979b4ac4ba5a8ed034eff3695c208e02ed 100644
(file)
--- 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;")