mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
Fix ensureTotalCapacity calls that should be ensureUnusedCapacity calls
If these functions are called more than once, then the array list would no longer be guaranteed to have enough capacity during the appendAssumeCapacity calls. With ensureUnusedCapacity, they will always be guaranteed to have enough capacity regardless of how many times the function is called.
This commit is contained in:
parent
77eefebe65
commit
70ef9bc75c
3 changed files with 3 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue