From fac83607f06d9c0cd22791ed535d8bcdcabf7977 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 19 May 2025 14:11:48 +0800 Subject: [PATCH] fix a bug --- src/compiler/compiler.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/compiler/compiler.c b/src/compiler/compiler.c index c2189c09..f97e5f70 100644 --- a/src/compiler/compiler.c +++ b/src/compiler/compiler.c @@ -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]);