mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Move pointer range comparisons into a macro, where they can be dealt with
in a more portable way. FossilOrigin-Name: ad3124c834b080aaaf24934d6f08b3601ac3ae53
This commit is contained in:
@@ -7521,13 +7521,7 @@ static int balance_nonroot(
|
||||
** overflow cell), we can skip updating the pointer map entries. */
|
||||
if( iOld>=nNew
|
||||
|| pNew->pgno!=aPgno[iOld]
|
||||
#ifdef HAVE_STDINT_H
|
||||
|| (intptr_t)pCell<(intptr_t)aOld
|
||||
|| (intptr_t)pCell>=(intptr_t)&aOld[usableSize]
|
||||
#else
|
||||
|| pCell<aOld
|
||||
|| pCell>=&aOld[usableSize]
|
||||
#endif
|
||||
|| !SQLITE_WITHIN(pCell,aOld,&aOld[usableSize])
|
||||
){
|
||||
if( !leafCorrection ){
|
||||
ptrmapPut(pBt, get4byte(pCell), PTRMAP_BTREE, pNew->pgno, &rc);
|
||||
|
Reference in New Issue
Block a user