ksud: fix compile for x86_64

This commit is contained in:
tiann
2023-01-31 19:00:58 +08:00
parent 4852beec79
commit 7f25e451fb

View File

@@ -672,7 +672,7 @@ fn to_c_ptr(pol: &PolicyObject) -> *const libc::c_char {
match pol {
PolicyObject::None => 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,
}
}