aboutsummaryrefslogtreecommitdiff
path: root/lib/std/coff.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-03 22:31:15 -0400
committerGitHub <noreply@github.com>2020-04-03 22:31:15 -0400
commite89c42655cf9851cdf02065bc75cda0e27884966 (patch)
treeb25e26e53ceda1ac03e65de5d483491ee46e7c0e /lib/std/coff.zig
parent1568470c44eafb59425c070ea9884b78cc2516b2 (diff)
parent7a28c644aa8eb3d27dee113338af8278f8f6334f (diff)
downloadzig-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.zig2
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);