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

first set of handles allocated returns an uninitialized handle #175

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

ogam
Copy link
Contributor

@ogam ogam commented Jul 22, 2024

When you start to create handles the first_index being 1 will cause you to go from m_count 0 => 2 and m_capacity 0 => 8,
last_index will get an bad handle on the very first set of handles, all handles afterwards seems to be fine.

second and later allocation times this grows it'll be m_count 2 => 16 and m_capacity 8 => 16 and won't cause any invalid handles

@RandyGaul RandyGaul merged commit dccb392 into RandyGaul:master Jul 22, 2024
4 checks passed
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