mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
LibWasm: Do not resize() the function signature list to preallocate
Instead, use `ensure_capacity()`.
This commit is contained in:
parent
025b3349e4
commit
faa34a0a8b
1 changed files with 1 additions and 1 deletions
|
@ -800,7 +800,7 @@ ParseResult<FunctionSection> FunctionSection::parse(InputStream& stream)
|
|||
return indices.error();
|
||||
|
||||
Vector<TypeIndex> typed_indices;
|
||||
typed_indices.resize(indices.value().size());
|
||||
typed_indices.ensure_capacity(indices.value().size());
|
||||
for (auto entry : indices.value())
|
||||
typed_indices.append(entry);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue