Fix VmIntSeq.length (#1666)

This fixes an internal optimization.

No language-observable change results from this fix, so no tests are
introduced.
This commit is contained in:
Daniel Chao
2026-06-10 06:52:25 -07:00
committed by GitHub
parent ce0383837a
commit f6e3f5e00b
@@ -50,6 +50,7 @@ public final class VmIntSeq extends VmValue implements Iterable<Long> {
}
public long getLength() {
if (isEmpty()) return 0;
return (Math.abs((end - start) / step)) + 1;
}