Pdb.openFile use []const u8 instead of []u8

This commit is contained in:
Code Hz 2020-06-25 10:03:49 +08:00 committed by Andrew Kelley
parent 129a4fb251
commit 7875649c24

View File

@ -469,7 +469,7 @@ pub const Pdb = struct {
msf: Msf,
pub fn openFile(self: *Pdb, coff_ptr: *coff.Coff, file_name: []u8) !void {
pub fn openFile(self: *Pdb, coff_ptr: *coff.Coff, file_name: []const u8) !void {
self.in_file = try fs.cwd().openFile(file_name, .{ .intended_io_mode = .blocking });
self.allocator = coff_ptr.allocator;
self.coff = coff_ptr;