0
Fork 0
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:
Ryan Liptak 2021-10-31 21:45:32 -07:00 • committed by Andrew Kelley
commit 70ef9bc75c
3 changed files with 3 additions and 3 deletions