bug in IntAVLTreeSet

40 views
Skip to first unread message

eran shaham

unread,
Aug 14, 2020, 6:05:19 PM8/14/20
to fastutil
Hello,
I think there is a bug in IntAVLTreeSet.

Calling the function IntAVLTreeSet.iterator(), returns new SetIterator(), which is: 
SetIterator() {
next = firstEntry;
}

I think you should also add: prev = lastEntry, i.e., 
SetIterator() {
next = firstEntry;
prev = lastEntry;
}
 

as without it, any call to hasPrevious() would fail 

All the best,
Eran
Reply all
Reply to author
Forward
0 new messages