Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RealmSet.iterator() wrong semantics #1220

Closed
edualonso opened this issue Jan 17, 2023 · 0 comments
Closed

Fix RealmSet.iterator() wrong semantics #1220

edualonso opened this issue Jan 17, 2023 · 0 comments
Assignees

Comments

@edualonso
Copy link
Contributor

edualonso commented Jan 17, 2023

The semantics of the rather naive implementation of RealmSet.iterator() are wrong in case of deleting elements since it does not keep track of the index for the last returned element, causing it to return or remove the wrong element after the first removal, failing in subsequent removals depending on the size of the set.

@sync-by-unito sync-by-unito bot closed this as completed Mar 13, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant