diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-19 11:40:26 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-19 11:40:26 +0100 |
| commit | 35026000bb66a2ab5ddc46c730618ce67f100e70 (patch) | |
| tree | 3b59862f0ac98069301fa31ac3e4088cc10d299b /src/check_stmt.cpp | |
| parent | 54af47a13881c938ae6bfeab89f69123c1dfc62a (diff) | |
Fix deadlock caused by typo
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 504c23d53..2e407e6c6 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1136,7 +1136,7 @@ void check_switch_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) { if (unhandled.count > 0) { begin_error_block(); - defer (begin_error_block()); + defer (end_error_block()); if (unhandled.count == 1) { error_no_newline(node, "Unhandled switch case: %.*s", LIT(unhandled[0]->token.string)); |