diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-09 19:24:24 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-09 19:26:32 -0400 |
| commit | b735764898412c5b9388fdf729c8ad8db43ddde5 (patch) | |
| tree | 1a5873e654ff7189b236acc15516b9c6cd35a315 /std/coff.zig | |
| parent | 10e33b35368735d1911a073bcb7cbbaebee671ee (diff) | |
| download | zig-b735764898412c5b9388fdf729c8ad8db43ddde5.tar.gz zig-b735764898412c5b9388fdf729c8ad8db43ddde5.zip | |
different array literal syntax when inferring the size
old syntax: []i32{1, 2, 3}
new syntax: [_]i32{1, 2, 3}
closes #1797
Diffstat (limited to 'std/coff.zig')
| -rw-r--r-- | std/coff.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/coff.zig b/std/coff.zig index 87f3f089de..97d286f0e6 100644 --- a/std/coff.zig +++ b/std/coff.zig @@ -57,7 +57,7 @@ pub const Coff = struct { var pe_header_magic: [4]u8 = undefined; try in.readNoEof(pe_header_magic[0..]); - if (!mem.eql(u8, pe_header_magic, []u8{ 'P', 'E', 0, 0 })) + if (!mem.eql(u8, pe_header_magic, [_]u8{ 'P', 'E', 0, 0 })) return error.InvalidPEHeader; self.coff_header = CoffHeader{ |
