diff options
| author | David Rubin <87927264+Rexicon226@users.noreply.github.com> | 2023-11-29 13:03:02 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-29 16:03:02 -0500 |
| commit | 1e42a3de89e8a4e78b76d8fc5192bbacf842c02b (patch) | |
| tree | f808e14983902b38badf4751674e37573b6a876a /src/link | |
| parent | cd7ac56a5a8f79da30c56bed42c30affd9ba0a6d (diff) | |
| download | zig-1e42a3de89e8a4e78b76d8fc5192bbacf842c02b.tar.gz zig-1e42a3de89e8a4e78b76d8fc5192bbacf842c02b.zip | |
Remove all usages of `std.mem.copy` and remove `std.mem.set` (#18143)
Diffstat (limited to 'src/link')
| -rw-r--r-- | src/link/MachO/uuid.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/MachO/uuid.zig b/src/link/MachO/uuid.zig index e62e3216f0..7b2e200cce 100644 --- a/src/link/MachO/uuid.zig +++ b/src/link/MachO/uuid.zig @@ -22,7 +22,7 @@ pub fn calcUuid(comp: *const Compilation, file: fs.File, file_size: u64, out: *[ defer comp.gpa.free(final_buffer); for (hashes, 0..) |hash, i| { - mem.copy(u8, final_buffer[i * Md5.digest_length ..][0..Md5.digest_length], &hash); + @memcpy(final_buffer[i * Md5.digest_length ..][0..Md5.digest_length], &hash); } Md5.hash(final_buffer, out, .{}); |
