aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/error.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-09-02 10:51:15 +0200
committerLemonBoy <thatlemon@gmail.com>2020-09-02 11:11:57 +0200
commit5f31d54064b204910c18667d0b68b8bf2b57cffb (patch)
treed13c9564e976e8b34aea6c196410830f792370c5 /src/stage1/error.cpp
parent73a8c9beaa63c48b6ddaeec8d2a67b239f0dec92 (diff)
downloadzig-5f31d54064b204910c18667d0b68b8bf2b57cffb.tar.gz
zig-5f31d54064b204910c18667d0b68b8bf2b57cffb.zip
std: ArrayList.initCapacity now respects the specified cap
Don't use the user-supplied cap as starting point for a resize. Doing so overallocates memory and thus negates the whole point of specifying a precise cap value.
Diffstat (limited to 'src/stage1/error.cpp')
0 files changed, 0 insertions, 0 deletions