authorgravatar for emekankurumeh@outlook.comemekoi <emekankurumeh@outlook.com> 2019-06-28 17:59:34-05:00
committergravatar for emekankurumeh@outlook.comemekoi <emekankurumeh@outlook.com> 2019-06-28 17:59:34-05:00
logfbb0c8d639ec205848f03099413c57f686c2d05d
treebd832f79c01d8756e3da8d26017ea516d814d7b9
parent4b7e04f75aef8da6d2f95977cee69cd9b3b440a5

fixed debug info on windows


1 files changed, 2 insertions(+), 1 deletions(-)

std/coff.zig+2-1
......@@ -142,10 +142,11 @@ pub const Coff = struct {
142142 }
143143
144144 pub fn loadSections(self: *Coff) !void {
145 if (self.sections.len != 0)
145 if (self.sections.len == self.coff_header.number_of_sections)
146146 return;
147147
148148 self.sections = ArrayList(Section).init(self.allocator);
149 try self.sections.ensureCapacity(self.coff_header.number_of_sections);
149150
150151 var file_stream = self.in_file.inStream();
151152 const in = &file_stream.stream;