From 72aa797c89e68d423b5c6857bbd47c275f1ed291 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 26 Aug 2014 10:26:36 +0200 Subject: [PATCH] Cast to right type in dictNext(). This closes issue #1929, the other part was fixed in the context of issue --- src/dict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict.c b/src/dict.c index 17818b853..6e0eef36a 100644 --- a/src/dict.c +++ b/src/dict.c @@ -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;