diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-04-03 22:31:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-03 22:31:15 -0400 |
| commit | e89c42655cf9851cdf02065bc75cda0e27884966 (patch) | |
| tree | b25e26e53ceda1ac03e65de5d483491ee46e7c0e /lib/std/coff.zig | |
| parent | 1568470c44eafb59425c070ea9884b78cc2516b2 (diff) | |
| parent | 7a28c644aa8eb3d27dee113338af8278f8f6334f (diff) | |
| download | zig-e89c42655cf9851cdf02065bc75cda0e27884966.tar.gz zig-e89c42655cf9851cdf02065bc75cda0e27884966.zip | |
Merge pull request #4868 from xackus/new-arraylist-api
new ArrayList API
Diffstat (limited to 'lib/std/coff.zig')
| -rw-r--r-- | lib/std/coff.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/coff.zig b/lib/std/coff.zig index d89019eec6..1ab88f6baf 100644 --- a/lib/std/coff.zig +++ b/lib/std/coff.zig @@ -181,7 +181,7 @@ pub const Coff = struct { } pub fn loadSections(self: *Coff) !void { - if (self.sections.len == self.coff_header.number_of_sections) + if (self.sections.items.len == self.coff_header.number_of_sections) return; try self.sections.ensureCapacity(self.coff_header.number_of_sections); |
