mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-26 15:11:37 +00:00
Make the slice::from_raw_parts call safe
This commit is contained in:
@ -52,6 +52,7 @@ macro_rules! intcast {
|
|||||||
}
|
}
|
||||||
intcast! { u8 i8 u16 i16 u32 i32 u64 i64 }
|
intcast! { u8 i8 u16 i16 u32 i32 u64 i64 }
|
||||||
|
|
||||||
|
#[repr(transparent)]
|
||||||
pub struct Atomic<T> {
|
pub struct Atomic<T> {
|
||||||
v: UnsafeCell<Wrapping<T>>,
|
v: UnsafeCell<Wrapping<T>>,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user