summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOMG-By <504094596@qq.com>2020-03-29 00:04:59 +0800
committerGitHub <noreply@github.com>2020-03-29 00:04:59 +0800
commit6d2f1188ac7fdbb03c0f3f83bfa06a02f2bbca3d (patch)
treed5ed7e6504a79890f7da6a8e6abe87318dc837f5
parentdf45fed050d6822dc86796b0089aaf1b56c7830e (diff)
downloadredis-6d2f1188ac7fdbb03c0f3f83bfa06a02f2bbca3d.tar.gz
fix: dict.c->dictResize()->minimal type
-rw-r--r--src/dict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dict.c b/src/dict.c
index 106467ef7..dec15771d 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -134,7 +134,7 @@ int _dictInit(dict *d, dictType *type,
* but with the invariant of a USED/BUCKETS ratio near to <= 1 */
int dictResize(dict *d)
{
- int minimal;
+ unsigned long minimal;
if (!dict_can_resize || dictIsRehashing(d)) return DICT_ERR;
minimal = d->ht[0].used;