mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix
This commit is contained in:
@@ -75,7 +75,7 @@ fn void*? LibcAllocator.resize(&self, void* old_ptr, usz new_bytes, usz alignmen
|
|||||||
return mem::OUT_OF_MEMORY~;
|
return mem::OUT_OF_MEMORY~;
|
||||||
}
|
}
|
||||||
// Now it is safe to copy the full range of data.
|
// Now it is safe to copy the full range of data.
|
||||||
mem::copy(aligned_ptr, old_ptr, new_bytes, mem::DEFAULT_MEM_ALIGNMENT, mem::DEFAULT_MEM_ALIGNMENT);
|
mem::copy(aligned_ptr, new_ptr, new_bytes, mem::DEFAULT_MEM_ALIGNMENT, mem::DEFAULT_MEM_ALIGNMENT);
|
||||||
return aligned_ptr;
|
return aligned_ptr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user