mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 23:30:18 +00:00
fix build
This commit is contained in:
parent
47f0443397
commit
df30974e06
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user