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
aca7f36b
Unverified
Commit
aca7f36b
authored
Mar 29, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Mar 29, 2020
Browse files
Merge pull request #7033 from OMG-By/unstable
fix: dict.c->dictResize()->minimal type
parents
e8afadd5
6d2f1188
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
aca7f36b
...
@@ -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