Skip to content

Commit 178f7e2

Browse files
committed
Merge branch 'topic/lkql_jit/fix_repeat_builtin' into 'master'
Fix the "repeat" built-in repeating node Closes #586 See merge request eng/libadalang/langkit-query-language!584
2 parents 037bf3f + 838cbd7 commit 178f7e2

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)