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/resinator/source_mapping.zig | |
| 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/resinator/source_mapping.zig')
| -rw-r--r-- | src/resinator/source_mapping.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resinator/source_mapping.zig b/src/resinator/source_mapping.zig index f8f99de401..b6c81cafdc 100644 --- a/src/resinator/source_mapping.zig +++ b/src/resinator/source_mapping.zig @@ -476,7 +476,7 @@ pub const SourceMappings = struct { const after_collapsed_start = line_num + num_following_lines_to_collapse; const new_num_lines = self.mapping.items.len - num_following_lines_to_collapse; - std.mem.copy(SourceSpan, self.mapping.items[line_num..new_num_lines], self.mapping.items[after_collapsed_start..]); + std.mem.copyForwards(SourceSpan, self.mapping.items[line_num..new_num_lines], self.mapping.items[after_collapsed_start..]); self.mapping.items.len = new_num_lines; } |
