Fix platform specific ffi c ptr types

This commit is contained in:
PThorpe92 2025-03-24 22:48:07 -04:00
parent 6798341b05
commit e9420e7d2b
No known key found for this signature in database
GPG key ID: 66DB3FBACBDD05CC
3 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ pub(crate) unsafe extern "C" fn register_vtab_module(
if name.is_null() || ctx.is_null() {
return ResultCode::Error;
}
let c_str = unsafe { CString::from_raw(name as *mut i8) };
let c_str = unsafe { CString::from_raw(name as *mut _) };
let name_str = match c_str.to_str() {
Ok(s) => s.to_string(),
Err(_) => return ResultCode::Error,