We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd3bca commit 7608000Copy full SHA for 7608000
src/decoder.rs
@@ -790,8 +790,8 @@ fn compute_image(components: &[Component],
790
for y in 0 .. height {
791
let destination_idx = y * width;
792
let source_idx = y * line_stride;
793
- let destination = &mut buffer[destination_idx..destination_idx + width];
794
- let source = &data[0][source_idx..source_idx + width];
+ let destination = &mut buffer[destination_idx..][..width];
+ let source = &data[0][source_idx..][..width];
795
destination.copy_from_slice(source);
796
}
797
0 commit comments