Skip to content

Commit 838cbd7

Browse files
committed
Fix the 'repeat' built-in repeating node
1 parent 037bf3f commit 838cbd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lkql_jit/language/src/main/java/com/adacore/lkql_jit/built_ins/BuiltInFunctions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public static final class InternalRepeatingNode extends Node implements Repeatin
381381

382382
private long times;
383383

384-
private int done = 0;
384+
private long done;
385385

386386
InternalRepeatingNode(
387387
LKQLFunction function,
@@ -391,6 +391,7 @@ public static final class InternalRepeatingNode extends Node implements Repeatin
391391
this.function = function;
392392
this.functionLibrary = functionLibrary;
393393
this.times = times;
394+
this.done = 0;
394395
}
395396

396397
public boolean executeRepeating(VirtualFrame frame) {

0 commit comments

Comments
 (0)