| author | |
| committer | |
| log | d50bae4da9739cd3385463203a2c461f75c8597e |
| tree | c8953c9c66605d4b1379f06e09cc3aa5a7f4dc22 |
| parent | 0595feb34128db22fbebea843af929de3ede8190 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/compress/lzma.zig+1-1| ... | ... | @@ -77,7 +77,7 @@ pub fn Decompress(comptime ReaderType: type) type { |
| 77 | 77 | const input = self.to_read.items; |
| 78 | 78 | const n = @min(input.len, output.len); |
| 79 | 79 | @memcpy(output[0..n], input[0..n]); |
| 80 | @memcpy(input[0 .. input.len - n], input[n..]); | |
| 80 | std.mem.copyForwards(u8, input[0 .. input.len - n], input[n..]); | |
| 81 | 81 | self.to_read.shrinkRetainingCapacity(input.len - n); |
| 82 | 82 | return n; |
| 83 | 83 | } |