fix build

This commit is contained in:
vms 2021-04-21 15:08:30 +03:00
parent 47f0443397
commit df30974e06

View File

@ -33,7 +33,7 @@ pub unsafe fn allocate(elem_count: usize, elem_ty: usize) -> usize {
}
macro_rules! alloc {
($ty:ty, $elem_count:ident) => {{
($ty:ty, $elem_count:expr) => {{
let vec = Vec::<$ty>::with_capacity($elem_count);
let offset = vec.as_ptr() as usize;
std::mem::forget(vec);