aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.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/debug.zig
parent6936243ee1b933cba5d5e86c398ec39865e4db28 (diff)
downloadzig-d87b13f2f7cef04058537c8bfeb1ceda1a067e73.tar.gz
zig-d87b13f2f7cef04058537c8bfeb1ceda1a067e73.zip
fix windows std lib regressions
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index a6a3e148d4..ecd3ebaef1 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -825,7 +825,7 @@ fn openSelfDebugInfoWindows(allocator: *mem.Allocator) !DebugInfo {
const len = try di.coff.getPdbPath(path_buf[0..]);
const raw_path = path_buf[0..len];
- const path = try fs.path.resolve(allocator, [_][]const u8{raw_path});
+ const path = try fs.path.resolve(allocator, &[_][]const u8{raw_path});
try di.pdb.openFile(di.coff, path);
@@ -834,10 +834,10 @@ fn openSelfDebugInfoWindows(allocator: *mem.Allocator) !DebugInfo {
const signature = try pdb_stream.stream.readIntLittle(u32);
const age = try pdb_stream.stream.readIntLittle(u32);
var guid: [16]u8 = undefined;
- try pdb_stream.stream.readNoEof(guid[0..]);
+ try pdb_stream.stream.readNoEof(&guid);
if (version != 20000404) // VC70, only value observed by LLVM team
return error.UnknownPDBVersion;
- if (!mem.eql(u8, di.coff.guid, guid) or di.coff.age != age)
+ if (!mem.eql(u8, &di.coff.guid, &guid) or di.coff.age != age)
return error.PDBMismatch;
// We validated the executable and pdb match.