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

Fix harmless compiler warnings in changebatch.

FossilOrigin-Name: a721a738184d914fcde3f5684099984a9373dff3
This commit is contained in:
drh
2016-08-23 18:09:37 +00:00
parent 8bbf544747
commit 7d931b985a
3 changed files with 10 additions and 10 deletions

View File

@@ -79,7 +79,7 @@ static int cbHash(sqlite3_changebatch *p, BatchIndexEntry *pEntry){
unsigned char *pEnd = (unsigned char*)&pEntry->aRecord[pEntry->szRecord];
unsigned char *pIter;
for(pIter=pEntry->aRecord; pIter<pEnd; pIter++){
for(pIter=(unsigned char*)pEntry->aRecord; pIter<pEnd; pIter++){
iHash += (iHash << 7) + *pIter;
}
@@ -101,7 +101,7 @@ static int cbHashResize(sqlite3_changebatch *p){
p->nHash = nNew;
for(i=0; i<nHash; i++){
BatchIndexEntry *pEntry;
while( pEntry=p->apHash[i] ){
while( (pEntry=p->apHash[i])!=0 ){
int iHash = cbHash(p, pEntry);
p->apHash[i] = pEntry->pNext;
pEntry->pNext = apNew[iHash];