Skip to content

Commit

Permalink
chore(downsample_mask): explicitly cast instead of implicit conversions
Browse files Browse the repository at this point in the history
Signed-off-by: Max SCHMELLER <[email protected]>
  • Loading branch information
mojomex committed Jan 16, 2025
1 parent 024c521 commit 88fb3d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class DownsampleMaskFilter

for (size_t y = 0; y < dithered.get_height(); ++y) {
for (size_t x = 0; x < dithered.get_width(); ++x) {
mask_.coeffRef(y, x) = dithered.get_pixel(x, y);
mask_.coeffRef(static_cast<int32_t>(y), static_cast<int32_t>(x)) = dithered.get_pixel(x, y);
}
}

Expand Down

0 comments on commit 88fb3d6

Please sign in to comment.