Fix typo in dict.c.
This commit is contained in:
parent
e777b0295e
commit
e58a9f7d52
2
dict.c
2
dict.c
@ -294,7 +294,7 @@ static void dictReleaseIterator(dictIterator *iter) {
|
|||||||
/* Expand the hash table if needed */
|
/* Expand the hash table if needed */
|
||||||
static int _dictExpandIfNeeded(dict *ht) {
|
static int _dictExpandIfNeeded(dict *ht) {
|
||||||
/* If the hash table is empty expand it to the initial size,
|
/* If the hash table is empty expand it to the initial size,
|
||||||
* if the table is "full" dobule its size. */
|
* if the table is "full" double its size. */
|
||||||
if (ht->size == 0)
|
if (ht->size == 0)
|
||||||
return dictExpand(ht, DICT_HT_INITIAL_SIZE);
|
return dictExpand(ht, DICT_HT_INITIAL_SIZE);
|
||||||
if (ht->used == ht->size)
|
if (ht->used == ht->size)
|
||||||
|
Loading…
Reference in New Issue
Block a user