parent
dd07674b59
commit
85a7f883d1
@ -304,6 +304,7 @@ impl Archetype {
|
|||||||
new_data.as_ptr().add(new_off),
|
new_data.as_ptr().add(new_off),
|
||||||
ty.layout.size() * old_count,
|
ty.layout.size() * old_count,
|
||||||
);
|
);
|
||||||
|
}
|
||||||
dealloc(
|
dealloc(
|
||||||
(*self.data.get()).as_ptr().cast(),
|
(*self.data.get()).as_ptr().cast(),
|
||||||
Layout::from_size_align_unchecked(
|
Layout::from_size_align_unchecked(
|
||||||
@ -312,7 +313,6 @@ impl Archetype {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
self.data = UnsafeCell::new(new_data);
|
self.data = UnsafeCell::new(new_data);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user