Skip to content

Commit

Permalink
Merge pull request #315 from barakugav/immutable-sublist-iter
Browse files Browse the repository at this point in the history
Immutable sub list iterator bug fix, ensureIndex is relative to sub range
  • Loading branch information
vigna authored Feb 7, 2024
2 parents df4402a + 0f53133 commit 1197d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drv/ImmutableList.drv
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public class IMMUTABLE_LIST KEY_GENERIC extends LISTS.ImmutableListBase KEY_GENE

@Override
public KEY_LIST_ITERATOR KEY_GENERIC listIterator(final int index) {
ensureRestrictedIndex(index + from);
ensureIndex(index);

return new KEY_LIST_ITERATOR KEY_GENERIC() {
int pos = index + from;
Expand Down

0 comments on commit 1197d8e

Please sign in to comment.