mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
fix a bug
This commit is contained in:
parent
e473fe7f05
commit
fac83607f0
@ -2058,8 +2058,6 @@ static Error* compile_match_case(Compiler* self, c11_vector* patches) {
|
||||
Ctx__patch_jump(ctx(), patch);
|
||||
} else {
|
||||
check(compile_block_body(self));
|
||||
int break_patch = Ctx__emit_(ctx(), OP_JUMP_FORWARD, BC_NOARG, prev()->line);
|
||||
c11_vector__push(int, patches, break_patch);
|
||||
}
|
||||
} else {
|
||||
return SyntaxError(self, "expected 'case', got '%s'", TokenSymbols[curr()->type]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user