diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2021-09-16 18:22:04 -0700 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2021-09-19 13:52:56 +0200 |
| commit | 59f5053beda7087a73983835e9f7e00dc3143d59 (patch) | |
| tree | d43b3a97472532c699d8ee9d741ae97766d3e209 /src/link.zig | |
| parent | feeb25908bebd5d09cf05128fad7d7c1a8a803a1 (diff) | |
| download | zig-59f5053beda7087a73983835e9f7e00dc3143d59.tar.gz zig-59f5053beda7087a73983835e9f7e00dc3143d59.zip | |
Update all ensureCapacity calls to the relevant non-deprecated version
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link.zig b/src/link.zig index 88159496f4..e649101f08 100644 --- a/src/link.zig +++ b/src/link.zig @@ -635,7 +635,7 @@ pub const File = struct { var object_files = std.ArrayList([*:0]const u8).init(base.allocator); defer object_files.deinit(); - try object_files.ensureCapacity(base.options.objects.len + comp.c_object_table.count() + 2); + try object_files.ensureTotalCapacity(base.options.objects.len + comp.c_object_table.count() + 2); for (base.options.objects) |obj_path| { object_files.appendAssumeCapacity(try arena.dupeZ(u8, obj_path)); } |
