Merge pull request #7033 from OMG-By/unstable

fix: dict.c->dictResize()->minimal  type
This commit is contained in:
Salvatore Sanfilippo 2020-03-29 16:17:52 +02:00 committed by GitHub
commit aca7f36b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;