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 BlockIter::size_hint upper bound #26

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Fix BlockIter::size_hint upper bound #26

merged 1 commit into from
Jun 29, 2024

Conversation

axelf4
Copy link
Contributor

@axelf4 axelf4 commented Sep 11, 2022

This pull request fixes an issue with BlockIter possibly returning a too low upper bound on its number of elements.

The current block (self.head) can contribute up to B::bits() elements, not just one.

The current block (`self.head`) can contribute up to `B::bits()`
elements, not just one.
@pczarn pczarn merged commit 51e1efb into contain-rs:master Jun 29, 2024
@pczarn
Copy link
Contributor

pczarn commented Jun 29, 2024

Thanks!

@axelf4 axelf4 deleted the fix-BlockIter-size_hint branch June 29, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants