mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 19:41:37 +08:00
Feature ptr_offset_from #41079 available in 1.47
This commit is contained in:
parent
5cf0158863
commit
6ae9802fa3
@ -250,8 +250,7 @@ impl InnerConnection {
|
|||||||
let tail = if c_tail.is_null() {
|
let tail = if c_tail.is_null() {
|
||||||
0
|
0
|
||||||
} else {
|
} else {
|
||||||
// TODO nightly feature ptr_offset_from #41079
|
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 {
|
if n <= 0 || n >= len as isize {
|
||||||
0
|
0
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user