aboutsummaryrefslogtreecommitdiff
path: root/lib/std/pdb.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-29 21:55:27 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-29 21:55:27 -0500
commitd87b13f2f7cef04058537c8bfeb1ceda1a067e73 (patch)
treeb1c24137bf2f4c179f4f6c9007861c5ab8638e60 /lib/std/pdb.zig
parent6936243ee1b933cba5d5e86c398ec39865e4db28 (diff)
downloadzig-d87b13f2f7cef04058537c8bfeb1ceda1a067e73.tar.gz
zig-d87b13f2f7cef04058537c8bfeb1ceda1a067e73.zip
fix windows std lib regressions
Diffstat (limited to 'lib/std/pdb.zig')
-rw-r--r--lib/std/pdb.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/pdb.zig b/lib/std/pdb.zig
index 8e4a9b5d6a..aef68631b7 100644
--- a/lib/std/pdb.zig
+++ b/lib/std/pdb.zig
@@ -500,7 +500,7 @@ const Msf = struct {
const superblock = try in.readStruct(SuperBlock);
// Sanity checks
- if (!mem.eql(u8, superblock.FileMagic, SuperBlock.file_magic))
+ if (!mem.eql(u8, &superblock.FileMagic, SuperBlock.file_magic))
return error.InvalidDebugInfo;
if (superblock.FreeBlockMapBlock != 1 and superblock.FreeBlockMapBlock != 2)
return error.InvalidDebugInfo;
@@ -546,7 +546,7 @@ const Msf = struct {
const size = stream_sizes[i];
if (size == 0) {
stream.* = MsfStream{
- .blocks = [_]u32{},
+ .blocks = &[_]u32{},
};
} else {
var blocks = try allocator.alloc(u32, size);