aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-12-17 21:55:20 +0000
committergingerBill <bill@gingerbill.org>2017-12-17 21:55:20 +0000
commitb509946b13fb12284c03ddc5ee30fcd1cf064feb (patch)
tree7459b2e112743d533b713cad06226710cd0ebaeb /src/check_stmt.cpp
parenta69ea58388d498a227094f2cb2f0083c620c9ac7 (diff)
Fix fallthrough within a nested block
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 2f82d98e8..6a5084d94 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1119,7 +1119,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
case_ast_node(bs, BlockStmt, node);
check_open_scope(c, node);
- check_stmt_list(c, bs->stmts, mod_flags);
+ check_stmt_list(c, bs->stmts, flags);
check_close_scope(c);
case_end;