From 8fb8a474fdbf6cd47a12e0f26e630f06a5ca4b4a Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 26 Aug 2014 10:32:37 +0200 Subject: [PATCH] Fix dictRehash assert casting type. Also related to #1929. --- src/dict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict.c b/src/dict.c index 840aae8e..f1a67730 100644 --- a/src/dict.c +++ b/src/dict.c @@ -251,7 +251,7 @@ int dictRehash(dict *d, int n) { /* Note that rehashidx can't overflow as we are sure there are more * elements because ht[0].used != 0 */ - assert(d->ht[0].size > (unsigned)d->rehashidx); + assert(d->ht[0].size > (unsigned long)d->rehashidx); while(d->ht[0].table[d->rehashidx] == NULL) d->rehashidx++; de = d->ht[0].table[d->rehashidx]; /* Move all the keys in this bucket from the old to the new hash HT */ -- GitLab