diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2024-04-22 03:22:15 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2024-04-23 03:20:38 -0700 |
| commit | 84f4c5d9ccbebb6675c7366c4e1fdb661003356e (patch) | |
| tree | 52c35bf6456f5a26e3e4a2083d2b62e772770642 /lib/std/debug.zig | |
| parent | a2b834e8c7152f70d71c71107db40b9182909647 (diff) | |
| download | zig-84f4c5d9ccbebb6675c7366c4e1fdb661003356e.tar.gz zig-84f4c5d9ccbebb6675c7366c4e1fdb661003356e.zip | |
std.unicode: Fix ArrayList functions when using populated ArrayLists
ensureTotalCapacityPrecise only satisfies the assumptions made in the ArrayListImpl functions (that there's already enough capacity for the entire converted string if it's all ASCII) when the ArrayList has no items, otherwise it would hit illegal behavior.
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
