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

std/hash_map: fix ensureUnusedCapacity() over-allocating #9365

Merged
merged 2 commits into from Jul 12, 2021

Conversation

ifreund
Copy link
Member

@ifreund ifreund commented Jul 12, 2021

Currently this function adds the desired unused capactiy to the current
total capacity instead of the current used capactiy.

@jedisct1
Copy link
Contributor

Oh, good catch! 👍

ifreund and others added 2 commits July 12, 2021 11:31
Currently this function adds the desired unused capactiy to the current
total capacity instead of the current used capactiy.
The C backend depends on insertion order into this map so that type
definitions will be declared before they are used.
@andrewrk andrewrk merged commit 9b79ce1 into ziglang:master Jul 12, 2021
@ifreund ifreund deleted the hash-map-fix branch July 12, 2021 22:29
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.

None yet

3 participants