From 675a9981cf464c865c6a5c888e922db3bd1a98aa Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 16 Dec 2023 10:01:53 +0100 Subject: [PATCH] Apply patch https://salsa.debian.org/rust-team/debcargo-conf/-/blob/529c3c84306436a723ea0f1595465fa61017b988/src/rusqlite/debian/patches/fix-tests-unsigned-char.patch --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")?;