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

Fixes for various clang warnings.

FossilOrigin-Name: 87bf60637e5863c54c5e2d05aaaca0835b7aace8
This commit is contained in:
drh
2014-01-24 22:58:00 +00:00
parent 53bed45ecb
commit 693e671936
15 changed files with 55 additions and 45 deletions

View File

@@ -892,7 +892,7 @@ static int echoBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
pIdxInfo->estimatedCost = cost;
}else if( useIdx ){
/* Approximation of log2(nRow). */
for( ii=0; ii<(sizeof(int)*8); ii++ ){
for( ii=0; ii<(sizeof(int)*8)-1; ii++ ){
if( nRow & (1<<ii) ){
pIdxInfo->estimatedCost = (double)ii;
}