aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2025-01-11 14:43:47 +0000
committerdrh <>2025-01-11 14:43:47 +0000
commit4b5e8c926ac48d83f70ae9fc1db8a6a9f6b73454 (patch)
treeb36b8e6c32319394166c6463dd9d91d49e4d62da /src/expr.c
parent27661f24cd6fc71387af5a48caf3fc38dffe1b14 (diff)
downloadsqlite-4b5e8c926ac48d83f70ae9fc1db8a6a9f6b73454.tar.gz
sqlite-4b5e8c926ac48d83f70ae9fc1db8a6a9f6b73454.zip
Better job at suppressing harmless scan-build warnings. This time testing
and working. FossilOrigin-Name: c847973947de67579fab78a65ecfc90bf59fd5db0b7fa7a9c1abb1fc92213d01
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index 8c118d077..ca5b9092e 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -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 */