File: fix-tests-unsigned-char.patch

package info (click to toggle)
rust-rusqlite 0.29.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 952 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 696 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: rust-rusqlite-0.29.0/src/lib.rs
===================================================================
--- rust-rusqlite-0.29.0.orig/src/lib.rs
+++ rust-rusqlite-0.29.0/src/lib.rs
@@ -1779,7 +1779,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")?;