Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
e58a9f7d
Unverified
Commit
e58a9f7d
authored
Nov 20, 2019
by
Kevin
Committed by
GitHub
Nov 20, 2019
Browse files
Fix typo in dict.c.
parent
e777b029
Changes
1
Show whitespace changes
Inline
Side-by-side
dict.c
View file @
e58a9f7d
...
@@ -294,7 +294,7 @@ static void dictReleaseIterator(dictIterator *iter) {
...
@@ -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" do
b
ule its size. */
* if the table is "full" dou
b
le 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment