aboutsummaryrefslogtreecommitdiff
path: root/std/coff.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-05-24 22:52:07 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-05-26 18:32:44 -0400
commitca6debcaf4a4f85b7aff94c7b5fe821530b0f195 (patch)
treea05bdab98809538db5bd3106b42ce60a8e868d6b /std/coff.zig
parent3d61e4228298dcb973c13d8d6eba0bff36acf1ca (diff)
downloadzig-ca6debcaf4a4f85b7aff94c7b5fe821530b0f195.tar.gz
zig-ca6debcaf4a4f85b7aff94c7b5fe821530b0f195.zip
starting to fix the regressions
Diffstat (limited to 'std/coff.zig')
-rw-r--r--std/coff.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/std/coff.zig b/std/coff.zig
index b5b5733989..87f3f089de 100644
--- a/std/coff.zig
+++ b/std/coff.zig
@@ -3,6 +3,7 @@ const std = @import("std.zig");
const io = std.io;
const mem = std.mem;
const os = std.os;
+const File = std.fs.File;
const ArrayList = std.ArrayList;
@@ -28,7 +29,7 @@ pub const CoffError = error{
};
pub const Coff = struct {
- in_file: os.File,
+ in_file: File,
allocator: *mem.Allocator,
coff_header: CoffHeader,
@@ -77,7 +78,7 @@ pub const Coff = struct {
try self.loadOptionalHeader(&file_stream);
}
- fn loadOptionalHeader(self: *Coff, file_stream: *os.File.InStream) !void {
+ fn loadOptionalHeader(self: *Coff, file_stream: *File.InStream) !void {
const in = &file_stream.stream;
self.pe_header.magic = try in.readIntLittle(u16);
// For now we're only interested in finding the reference to the .pdb,