There was an error while loading. Please reload this page.
1 parent 1f331f1 commit aefcf06Copy full SHA for aefcf06
1 file changed
tests/word_swap.rs
@@ -42,7 +42,7 @@ fn test_swap_logic(image_type: ImageType, asset_name: &str) {
42
43
let bpp = image_type.get_size().get_bpp();
44
// Ceiling division handles widths that aren't byte-aligned
45
- let bytes_per_row = ((width * bpp) + 7) / 8;
+ let bytes_per_row = (width * bpp).div_ceil(8);
46
let bytes_per_row = bytes_per_row as usize;
47
48
for y in (1..height).step_by(2) {
0 commit comments