This commit is contained in:
xavo95 2025-01-12 19:32:55 +01:00
parent ac26bc2839
commit 061359540b
Signed by: xavo95
GPG key ID: CBF8ADED6DEBB783

View file

@ -40,7 +40,7 @@ impl TArray {
self.cap
}
pub fn clear(&mut self, len: u32) {
pub fn clear(&mut self) {
if self.data_ptr != 0 && self.len > 0 {
let data = unsafe {
std::slice::from_raw_parts_mut(self.data_ptr as *mut u8, self.len as usize)