mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
base2k: fixed buffer zeroing overflow
This commit is contained in:
@@ -113,7 +113,7 @@ where
|
|||||||
|
|
||||||
fn zero_at(&mut self, i: usize, j: usize) {
|
fn zero_at(&mut self, i: usize, j: usize) {
|
||||||
unsafe {
|
unsafe {
|
||||||
std::ptr::write_bytes(self.at_mut_ptr(i, j), 0, self.sl());
|
std::ptr::write_bytes(self.at_mut_ptr(i, j), 0, self.n());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user