diff options
| author | Veikka Tuominen <git@vexu.eu> | 2023-05-10 16:26:54 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-05-11 17:23:06 +0300 |
| commit | f0fdaf32d3b802e9db16a0753d9ff49a8667089b (patch) | |
| tree | 5ff1ea4e3897869e3e01e8231acb393b83a7e591 /src/link | |
| parent | 67afd2a470153681d3a2323ec388e3ecd545cef1 (diff) | |
| download | zig-f0fdaf32d3b802e9db16a0753d9ff49a8667089b.tar.gz zig-f0fdaf32d3b802e9db16a0753d9ff49a8667089b.zip | |
fix incorrect use of mutable pointers to temporary values
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) { |
