diff --git a/src/lib.rs b/src/lib.rs index 2e1aeb5..1448707 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1881,7 +1881,7 @@ mod test { #[test] fn test_from_handle_owned() -> Result<()> { let mut handle: *mut ffi::sqlite3 = std::ptr::null_mut(); - let r = unsafe { ffi::sqlite3_open(":memory:\0".as_ptr() as *const i8, &mut handle) }; + let r = unsafe { ffi::sqlite3_open(":memory:\0".as_ptr() as *const c_char, &mut handle) }; assert_eq!(r, ffi::SQLITE_OK); let db = unsafe { Connection::from_handle_owned(handle) }?; db.execute_batch("PRAGMA VACUUM")?;