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

Fix harmless compiler warning in MSVC 2015.

FossilOrigin-Name: 01c8b9ccfa0f336dfead7c004de3de571753f707
This commit is contained in:
mistachkin
2015-07-21 19:22:35 +00:00
parent 9edb5ceb1f
commit 6b67a8ae03
3 changed files with 12 additions and 12 deletions

View File

@@ -952,13 +952,13 @@ static void walCleanupHash(Wal *pWal){
** via the hash table even after the cleanup.
*/
if( iLimit ){
int i; /* Loop counter */
int j; /* Loop counter */
int iKey; /* Hash key */
for(i=1; i<=iLimit; i++){
for(iKey=walHash(aPgno[i]); aHash[iKey]; iKey=walNextHash(iKey)){
if( aHash[iKey]==i ) break;
for(j=1; j<=iLimit; j++){
for(iKey=walHash(aPgno[j]); aHash[iKey]; iKey=walNextHash(iKey)){
if( aHash[iKey]==j ) break;
}
assert( aHash[iKey]==i );
assert( aHash[iKey]==j );
}
}
#endif /* SQLITE_ENABLE_EXPENSIVE_ASSERT */