ksud: fix compile for x86_64

This commit is contained in:
tiann
2023-01-31 19:00:58 +08:00
parent 3413f4a4fe
commit ad89c5a80f

View File

@@ -672,7 +672,7 @@ fn to_c_ptr(pol: &PolicyObject) -> *const libc::c_char {
match pol { match pol {
PolicyObject::None => std::ptr::null(), PolicyObject::None => std::ptr::null(),
PolicyObject::All => std::ptr::null(), PolicyObject::All => std::ptr::null(),
PolicyObject::One(s) => s.as_ptr(), PolicyObject::One(s) => s.as_ptr() as *const libc::c_char,
} }
} }