aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2024-04-22 03:22:15 -0700
committerRyan Liptak <squeek502@hotmail.com>2024-04-23 03:20:38 -0700
commit84f4c5d9ccbebb6675c7366c4e1fdb661003356e (patch)
tree52c35bf6456f5a26e3e4a2083d2b62e772770642 /lib/std/debug.zig
parenta2b834e8c7152f70d71c71107db40b9182909647 (diff)
downloadzig-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