mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-15 17:22:26 +08:00
Fix build on some older versions of Rust
This commit is contained in:
@@ -261,7 +261,7 @@ impl InnerConnection {
|
||||
let tail = if c_tail.is_null() {
|
||||
0
|
||||
} else {
|
||||
let n = unsafe { c_tail.offset_from(c_sql) };
|
||||
let n = (c_tail as isize) - (c_sql as isize);
|
||||
if n <= 0 || n >= len as isize {
|
||||
0
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user