summaryrefslogtreecommitdiff
path: root/rust/src/lib.rs
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2024-08-02 14:42:21 +0800
committerXusheng <xusheng@vector35.com>2024-08-02 14:42:21 +0800
commit351238c300838d39ca896eeb7d180a35cc12998f (patch)
tree0713e996da9002ce44503a569bd54334b14cb933 /rust/src/lib.rs
parentabbae639d8ba182e8b3cf2d5a9844a9b1f9844a1 (diff)
Fix arm64 Linux build by using std::os::raw::c_char rather than i8 to represent a C char
Diffstat (limited to 'rust/src/lib.rs')
-rw-r--r--rust/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index baac888b..bd46611d 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -476,7 +476,7 @@ pub fn license_count() -> i32 {
pub fn set_license<S: string::BnStrCompatible>(license: S) {
let license = license.into_bytes_with_nul();
let license_slice = license.as_ref();
- unsafe { binaryninjacore_sys::BNSetLicense(license_slice.as_ptr() as *const i8) }
+ unsafe { binaryninjacore_sys::BNSetLicense(license_slice.as_ptr() as *const std::os::raw::c_char) }
}
pub fn product() -> string::BnString {
@@ -501,7 +501,7 @@ pub fn is_ui_enabled() -> bool {
pub fn is_database<S: string::BnStrCompatible>(filename: S) -> bool {
let filename = filename.into_bytes_with_nul();
let filename_slice = filename.as_ref();
- unsafe { binaryninjacore_sys::BNIsDatabase(filename_slice.as_ptr() as *const i8) }
+ unsafe { binaryninjacore_sys::BNIsDatabase(filename_slice.as_ptr() as *const std::os::raw::c_char) }
}
pub fn plugin_abi_version() -> u32 {