Update dict.c

change coding style.
This commit is contained in:
paule 2018-07-16 14:29:59 +08:00 committed by GitHub
parent 816fc6cbc6
commit b6ce7d5ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -705,8 +705,10 @@ unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count) {
* table, there will be no elements in both tables up to * table, there will be no elements in both tables up to
* the current rehashing index, so we jump if possible. * the current rehashing index, so we jump if possible.
* (this happens when going from big to small table). */ * (this happens when going from big to small table). */
if (i >= d->ht[1].size) i = d->rehashidx; if (i >= d->ht[1].size)
else continue; i = d->rehashidx;
else
continue;
} }
if (i >= d->ht[j].size) continue; /* Out of range for this table. */ if (i >= d->ht[j].size) continue; /* Out of range for this table. */
dictEntry *he = d->ht[j].table[i]; dictEntry *he = d->ht[j].table[i];