summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-08-26 10:26:36 +0200
committerantirez <antirez@gmail.com>2014-08-26 10:26:36 +0200
commit72aa797c89e68d423b5c6857bbd47c275f1ed291 (patch)
tree315832ea075c834cb656ee479e9aaafaf39efa2a /src
parent064d5c96ac0545e2115edd7d4153433a99aaa707 (diff)
downloadredis-72aa797c89e68d423b5c6857bbd47c275f1ed291.tar.gz
Cast to right type in dictNext().
This closes issue #1929, the other part was fixed in the context of issue
Diffstat (limited to 'src')
-rw-r--r--src/dict.c2
1 files changed, 1 insertions, 1 deletions
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;