Skip to content

Commit

Permalink
Fix missing cast due to revert
Browse files Browse the repository at this point in the history
  • Loading branch information
lte678 committed Oct 12, 2024
1 parent a6373dc commit 83cb252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Canvas {
"Number of pixels in src_bytes does not match stride and size."
);
assert!(
src_stride >= src_size.x() as usize * src_format.bytes_per_pixel(),
src_stride >= src_size.x() as usize * src_format.bytes_per_pixel() as usize,
"src_stride must be >= than src_size.x()"
);

Expand Down

0 comments on commit 83cb252

Please sign in to comment.