1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Better job at suppressing harmless scan-build warnings. This time testing

and working.

FossilOrigin-Name: c847973947de67579fab78a65ecfc90bf59fd5db0b7fa7a9c1abb1fc92213d01
This commit is contained in:
drh
2025-01-11 14:43:47 +00:00
parent 27661f24cd
commit 4b5e8c926a
4 changed files with 12 additions and 10 deletions

View File

@@ -3285,7 +3285,7 @@ int sqlite3FindInIndex(
if( aiMap ) aiMap[i] = j;
}
assert( nExpr<BMS );
assert( nExpr>0 && nExpr<BMS );
assert( i==nExpr || colUsed!=(MASKBIT(nExpr)-1) );
if( colUsed==(MASKBIT(nExpr)-1) ){
/* If we reach this point, that means the index pIdx is usable */