Skip to content

Commit

Permalink
Immutable sub list iterator bug fix, listIterator(size()) should be ok
Browse files Browse the repository at this point in the history
  • Loading branch information
barakugav committed Feb 7, 2024
1 parent 32b68b9 commit 0f53133
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);
ensureIndex(index);

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

0 comments on commit 0f53133

Please sign in to comment.