Cast to right type in dictNext().

This closes issue #1929, the other part was fixed in the context of issue
This commit is contained in:
antirez 2014-08-26 10:26:36 +02:00
parent 064d5c96ac
commit 72aa797c89

View File

@ -570,7 +570,7 @@ dictEntry *dictNext(dictIterator *iter)
iter->fingerprint = dictFingerprint(iter->d);
}
iter->index++;
if (iter->index >= (signed) ht->size) {
if (iter->index >= (long) ht->size) {
if (dictIsRehashing(iter->d) && iter->table == 0) {
iter->table++;
iter->index = 0;