mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
extensions/vtab: fix i32 being passed as i64 across FFI boundary
as nilskch points out in #1807, Rust 1.88.0 is stricter about alignment. because rust integers default to `i32`, we were casting a pointer to an `i32` as a pointer to an `i64` causing a panic when dereferenced due to misalignment as rust expects it to be 8 byte aligned.
This commit is contained in:
parent
5f6a7965cb
commit
4aa2c846bb
1 changed files with 1 additions and 1 deletions
|
|
@ -412,7 +412,7 @@ impl Conn {
|
|||
};
|
||||
let arg_count = args.len() as i32;
|
||||
let args = args.as_ptr();
|
||||
let last_insert_rowid = 0;
|
||||
let last_insert_rowid: i64 = 0;
|
||||
if let ResultCode::OK = unsafe {
|
||||
(self._execute)(
|
||||
self as *const _ as *mut Conn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue