mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
Fix platform specific ffi c ptr types
This commit is contained in:
parent
6798341b05
commit
e9420e7d2b
3 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue