diff options
author | drh <drh@noemail.net> | 2014-01-24 22:58:00 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-01-24 22:58:00 +0000 |
commit | 693e671936cd7053e874186228b9b0454a643893 (patch) | |
tree | 4e0776d9f894fda382f18a621fe097777d4bbf21 /src/test8.c | |
parent | 53bed45ecb66ba6ddd835a448adebdb61c2a81dc (diff) | |
download | sqlite-693e671936cd7053e874186228b9b0454a643893.tar.gz sqlite-693e671936cd7053e874186228b9b0454a643893.zip |
Fixes for various clang warnings.
FossilOrigin-Name: 87bf60637e5863c54c5e2d05aaaca0835b7aace8
Diffstat (limited to 'src/test8.c')
-rw-r--r-- | src/test8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test8.c b/src/test8.c index 9b8b545fa..8bc835d63 100644 --- a/src/test8.c +++ b/src/test8.c @@ -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; } |