summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@gmail.com>2017-07-10 15:09:36 -0700
committerRobert Bradshaw <robertwb@gmail.com>2017-07-10 15:09:36 -0700
commit866c3e8a178a9ef32ea084e6d700a054cce921dc (patch)
tree83da1dcc25f76eac31fc7db602b57d17ae441486
parent3ea17b707dde432c7b7b155aa227851eb2ef3eab (diff)
downloadcython-866c3e8a178a9ef32ea084e6d700a054cce921dc.tar.gz
Add semicolon for fallthrough statements.0.26b2
Resolves note at #1765.
-rw-r--r--Cython/Compiler/Nodes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py
index 6565b7fd8..0d6da858f 100644
--- a/Cython/Compiler/Nodes.py
+++ b/Cython/Compiler/Nodes.py
@@ -3623,7 +3623,7 @@ class DefNodeWrapper(FuncDefNode):
if i >= min_positional_args-1:
code.put('case %2d: ' % (i+1))
code.putln("values[%d] = PyTuple_GET_ITEM(%s, %d);" % (i, Naming.args_cname, i))
- code.putln('CYTHON_FALLTHROUGH')
+ code.putln('CYTHON_FALLTHROUGH;')
if min_positional_args == 0:
code.put('case 0: ')
code.putln('break;')
@@ -3750,7 +3750,7 @@ class DefNodeWrapper(FuncDefNode):
code.put('case %2d: ' % (i+1))
code.putln("values[%d] = PyTuple_GET_ITEM(%s, %d);" % (
i, Naming.args_cname, i))
- code.putln('CYTHON_FALLTHROUGH')
+ code.putln('CYTHON_FALLTHROUGH;')
code.putln('case 0: break;')
if not self.star_arg:
code.put('default: ') # more arguments than allowed
@@ -3820,7 +3820,7 @@ class DefNodeWrapper(FuncDefNode):
code.putln(code.error_goto(self.pos))
code.putln('}')
if max_positional_args > 0 and i < last_required_arg:
- code.putln('CYTHON_FALLTHROUGH')
+ code.putln('CYTHON_FALLTHROUGH;')
if max_positional_args > 0:
code.putln('}')