diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-09-02 10:51:15 +0200 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2020-09-02 11:11:57 +0200 |
| commit | 5f31d54064b204910c18667d0b68b8bf2b57cffb (patch) | |
| tree | d13c9564e976e8b34aea6c196410830f792370c5 /src/stage1/error.cpp | |
| parent | 73a8c9beaa63c48b6ddaeec8d2a67b239f0dec92 (diff) | |
| download | zig-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
