From b9776aec1e1f28aca5b4f5884d4670849f787a7a Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Tue, 24 May 2022 13:27:01 +0900 Subject: [PATCH] Revert loop on 'for ... if ...' --- src/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.c b/src/compiler.c index 39b59f4..38091f7 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -2777,7 +2777,7 @@ static void comprehensionInner(KrkScanner scannerBefore, Parser parserBefore, vo if (match(TOKEN_IF)) { parsePrecedence(PREC_OR); int acceptJump = emitJump(OP_JUMP_IF_TRUE_OR_POP); - emitLoop(loopStart, OP_LOOP_ITER); + emitLoop(loopStart, OP_LOOP); patchJump(acceptJump); emitByte(OP_POP); /* Pop condition */ }