mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2025-04-24 23:12:13 +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 {
|
macro_rules! alloc {
|
||||||
($ty:ty, $elem_count:ident) => {{
|
($ty:ty, $elem_count:expr) => {{
|
||||||
let vec = Vec::<$ty>::with_capacity($elem_count);
|
let vec = Vec::<$ty>::with_capacity($elem_count);
|
||||||
let offset = vec.as_ptr() as usize;
|
let offset = vec.as_ptr() as usize;
|
||||||
std::mem::forget(vec);
|
std::mem::forget(vec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user