Fix deadlock caused by typo

This commit is contained in:
gingerBill
2021-08-19 11:40:26 +01:00
parent 54af47a138
commit 35026000bb
2 changed files with 14 additions and 17 deletions
+1 -1
View File
@@ -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));