diff options
| author | Veikka Tuominen <git@vexu.eu> | 2023-05-13 12:52:16 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-13 12:52:16 +0300 |
| commit | 68bacad8047df050c8ab6bf52c2921f482647d57 (patch) | |
| tree | 9b428c397ee0173b670dfbe34f4c9330dc257bb7 /src/link | |
| parent | 6f418c11e1ad1150fbdb002cfe1be92bda4e93cb (diff) | |
| parent | 5aa9628de3c6637f45b9d8cf8cbd19c422a74f6f (diff) | |
| download | zig-68bacad8047df050c8ab6bf52c2921f482647d57.tar.gz zig-68bacad8047df050c8ab6bf52c2921f482647d57.zip | |
Merge pull request #15643 from Vexu/fixes
make `@call` compile errors match regular calls
Diffstat (limited to 'src/link')
| -rw-r--r-- | src/link/MachO/Atom.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/MachO/Atom.zig b/src/link/MachO/Atom.zig index fb05595b7d..970371e455 100644 --- a/src/link/MachO/Atom.zig +++ b/src/link/MachO/Atom.zig @@ -116,7 +116,7 @@ pub fn addRelocation(macho_file: *MachO, atom_index: Index, reloc: Relocation) ! return addRelocations(macho_file, atom_index, &[_]Relocation{reloc}); } -pub fn addRelocations(macho_file: *MachO, atom_index: Index, relocs: []Relocation) !void { +pub fn addRelocations(macho_file: *MachO, atom_index: Index, relocs: []const Relocation) !void { const gpa = macho_file.base.allocator; const gop = try macho_file.relocs.getOrPut(gpa, atom_index); if (!gop.found_existing) { |
