Commit 91e6b4d7 authored by antirez's avatar antirez
Browse files

Fix dictRehash assert casting type.

Also related to #1929.
parent 72aa797c
...@@ -251,7 +251,7 @@ int dictRehash(dict *d, int n) { ...@@ -251,7 +251,7 @@ int dictRehash(dict *d, int n) {
/* Note that rehashidx can't overflow as we are sure there are more /* Note that rehashidx can't overflow as we are sure there are more
* elements because ht[0].used != 0 */ * 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++; while(d->ht[0].table[d->rehashidx] == NULL) d->rehashidx++;
de = d->ht[0].table[d->rehashidx]; de = d->ht[0].table[d->rehashidx];
/* Move all the keys in this bucket from the old to the new hash HT */ /* Move all the keys in this bucket from the old to the new hash HT */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment