summaryrefslogtreecommitdiffhomepage
path: root/compiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler.c')
-rw-r--r--compiler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler.c b/compiler.c
index f69ee2d..00f9f11 100644
--- a/compiler.c
+++ b/compiler.c
@@ -2448,7 +2448,7 @@ uc_compiler_compile_switch(uc_compiler_t *compiler)
uc_compiler_syntax_error(compiler, compiler->parser->prev.pos,
"more than one switch default case");
- return;
+ break;
}
uc_compiler_parse_consume(compiler, TK_COLON);
@@ -2511,7 +2511,7 @@ uc_compiler_compile_switch(uc_compiler_t *compiler)
uc_compiler_syntax_error(compiler, compiler->parser->curr.pos,
"Expecting 'case' or 'default'");
- return;
+ break;
}
}