Revert "Remove unnecessary "unsafe" block to fix compiler warning"
This reverts commit 7af93f1532.
This commit is contained in:
@@ -89,6 +89,7 @@ impl ForeignFunctionTable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn map_type_ffi(&mut self, source: &Atom) -> *mut ffi_type {
|
fn map_type_ffi(&mut self, source: &Atom) -> *mut ffi_type {
|
||||||
|
unsafe {
|
||||||
match source {
|
match source {
|
||||||
atom!("sint64") => addr_of_mut!(types::sint64),
|
atom!("sint64") => addr_of_mut!(types::sint64),
|
||||||
atom!("sint32") => addr_of_mut!(types::sint32),
|
atom!("sint32") => addr_of_mut!(types::sint32),
|
||||||
@@ -110,6 +111,7 @@ impl ForeignFunctionTable {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub(crate) fn load_library(
|
pub(crate) fn load_library(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|||||||
Reference in New Issue
Block a user