fast image operations
facepolm
bendn 2024-01-23
parent d5d7b57 · commit 33e55b5
-rw-r--r--src/overlay.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/overlay.rs b/src/overlay.rs
index 9e79ad0..8b19c1a 100644
--- a/src/overlay.rs
+++ b/src/overlay.rs
@@ -225,7 +225,7 @@ impl<U: AsRef<[u8]>> OverlayAt<Image<U, 3>> for uninit::Image<u8, 3> {
..((j + y as usize) * self.width() as usize + x as usize + (with.width() as usize))
* 3;
// <= because ".." range
- debug_assert!(o_x.end <= self.buffer().as_ref().len());
+ // debug_assert!(o_x.end <= self.buffer().as_ref().len());
debug_assert!(i_x.end <= with.buffer().as_ref().len());
// SAFETY: we are in ⬜!
let b = unsafe { with.buffer.as_ref().get_unchecked(i_x) };