| ... | ... | @@ -3547,7 +3547,7 @@ fn reportDuplicates(self: *MachO, dupes: anytype) error{ HasDuplicates, OutOfMem |
| 3547 | 3547 | const tracy = trace(@src()); |
| 3548 | 3548 | defer tracy.end(); |
| 3549 | 3549 | |
| 3550 | | const max_notes = 4; |
| 3550 | const max_notes = 3; |
| 3551 | 3551 | |
| 3552 | 3552 | var has_dupes = false; |
| 3553 | 3553 | var it = dupes.iterator(); |
| ... | ... | @@ -3556,8 +3556,9 @@ fn reportDuplicates(self: *MachO, dupes: anytype) error{ HasDuplicates, OutOfMem |
| 3556 | 3556 | const notes = entry.value_ptr.*; |
| 3557 | 3557 | const nnotes = @min(notes.items.len, max_notes) + @intFromBool(notes.items.len > max_notes); |
| 3558 | 3558 | |
| 3559 | | var err = try self.addErrorWithNotes(nnotes); |
| 3559 | var err = try self.addErrorWithNotes(nnotes + 1); |
| 3560 | 3560 | try err.addMsg(self, "duplicate symbol definition: {s}", .{sym.getName(self)}); |
| 3561 | try err.addNote(self, "defined by {}", .{sym.getFile(self).?.fmtPath()}); |
| 3561 | 3562 | |
| 3562 | 3563 | var inote: usize = 0; |
| 3563 | 3564 | while (inote < @min(notes.items.len, max_notes)) : (inote += 1) { |