aboutsummaryrefslogtreecommitdiff
path: root/std/coff.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-09 19:24:24 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-09 19:26:32 -0400
commitb735764898412c5b9388fdf729c8ad8db43ddde5 (patch)
tree1a5873e654ff7189b236acc15516b9c6cd35a315 /std/coff.zig
parent10e33b35368735d1911a073bcb7cbbaebee671ee (diff)
downloadzig-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.zig2
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{