diff --git a/ext/node/ops/sqlite/database.rs b/ext/node/ops/sqlite/database.rs index 3c0b81962f..c39aebcff6 100644 --- a/ext/node/ops/sqlite/database.rs +++ b/ext/node/ops/sqlite/database.rs @@ -142,7 +142,7 @@ impl DatabaseSync { let r = unsafe { libsqlite3_sys::sqlite3_prepare_v2( raw_handle, - sql.as_ptr() as *const i8, + sql.as_ptr() as *const _, sql.len() as i32, &mut raw_stmt, std::ptr::null_mut(), diff --git a/ext/node/ops/sqlite/statement.rs b/ext/node/ops/sqlite/statement.rs index c579f65ccd..0a0e65e7d7 100644 --- a/ext/node/ops/sqlite/statement.rs +++ b/ext/node/ops/sqlite/statement.rs @@ -214,7 +214,7 @@ impl StatementSync { ffi::sqlite3_bind_text( raw, i + 1, - value.as_ptr() as *const i8, + value.as_ptr() as *const _, value.len() as i32, ffi::SQLITE_TRANSIENT(), );