mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 08:45:52 +00:00
fixed debug info on windows
This commit is contained in:
parent
4b7e04f75a
commit
fbb0c8d639
@ -142,10 +142,11 @@ pub const Coff = struct {
|
||||
}
|
||||
|
||||
pub fn loadSections(self: *Coff) !void {
|
||||
if (self.sections.len != 0)
|
||||
if (self.sections.len == self.coff_header.number_of_sections)
|
||||
return;
|
||||
|
||||
self.sections = ArrayList(Section).init(self.allocator);
|
||||
try self.sections.ensureCapacity(self.coff_header.number_of_sections);
|
||||
|
||||
var file_stream = self.in_file.inStream();
|
||||
const in = &file_stream.stream;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user