aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2023-05-13 12:52:16 +0300
committerGitHub <noreply@github.com>2023-05-13 12:52:16 +0300
commit68bacad8047df050c8ab6bf52c2921f482647d57 (patch)
tree9b428c397ee0173b670dfbe34f4c9330dc257bb7 /src/link
parent6f418c11e1ad1150fbdb002cfe1be92bda4e93cb (diff)
parent5aa9628de3c6637f45b9d8cf8cbd19c422a74f6f (diff)
downloadzig-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.zig2
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) {