diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-11-29 21:55:27 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-11-29 21:55:27 -0500 |
| commit | d87b13f2f7cef04058537c8bfeb1ceda1a067e73 (patch) | |
| tree | b1c24137bf2f4c179f4f6c9007861c5ab8638e60 /lib/std/pdb.zig | |
| parent | 6936243ee1b933cba5d5e86c398ec39865e4db28 (diff) | |
| download | zig-d87b13f2f7cef04058537c8bfeb1ceda1a067e73.tar.gz zig-d87b13f2f7cef04058537c8bfeb1ceda1a067e73.zip | |
fix windows std lib regressions
Diffstat (limited to 'lib/std/pdb.zig')
| -rw-r--r-- | lib/std/pdb.zig | 4 |
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); |
