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
redis
Commits
26b79ca1
Commit
26b79ca1
authored
Mar 29, 2020
by
OMG-By
Committed by
antirez
Mar 31, 2020
Browse files
fix: dict.c->dictResize()->minimal type
parent
fa418637
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
26b79ca1
...
@@ -134,7 +134,7 @@ int _dictInit(dict *d, dictType *type,
...
@@ -134,7 +134,7 @@ int _dictInit(dict *d, dictType *type,
* but with the invariant of a USED/BUCKETS ratio near to <= 1 */
* but with the invariant of a USED/BUCKETS ratio near to <= 1 */
int
dictResize
(
dict
*
d
)
int
dictResize
(
dict
*
d
)
{
{
int
minimal
;
unsigned
long
minimal
;
if
(
!
dict_can_resize
||
dictIsRehashing
(
d
))
return
DICT_ERR
;
if
(
!
dict_can_resize
||
dictIsRehashing
(
d
))
return
DICT_ERR
;
minimal
=
d
->
ht
[
0
].
used
;
minimal
=
d
->
ht
[
0
].
used
;
...
...
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