fix WHILE loop after a return

This commit is contained in:
Volker Berlin 2022-02-13 15:46:43 +01:00
parent 86f95ad3bb
commit 84f2f45d4c

View File

@ -617,8 +617,8 @@ class BranchManager {
boolean isContinue = false; boolean isContinue = false;
for( int i = ifCount + 1; i < parsedOpCount; i++ ) { for( int i = ifCount + 1; i < parsedOpCount; i++ ) {
ParsedBlock op = parsedOperations.get( i ); ParsedBlock op = parsedOperations.get( i );
if( op.endPosition >= elsePos && op.op == JavaBlockOperator.IF ) { if( op.endPosition >= elsePos ) {
isContinue = true; isContinue = op.op == JavaBlockOperator.IF;
break; break;
} }
} }