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
b6ce7d5d
Unverified
Commit
b6ce7d5d
authored
Jul 16, 2018
by
paule
Committed by
GitHub
Jul 16, 2018
Browse files
Update dict.c
change coding style.
parent
816fc6cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
b6ce7d5d
...
@@ -705,8 +705,10 @@ unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count) {
...
@@ -705,8 +705,10 @@ unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count) {
* table, there will be no elements in both tables up to
* table, there will be no elements in both tables up to
* the current rehashing index, so we jump if possible.
* the current rehashing index, so we jump if possible.
* (this happens when going from big to small table). */
* (this happens when going from big to small table). */
if
(
i
>=
d
->
ht
[
1
].
size
)
i
=
d
->
rehashidx
;
if
(
i
>=
d
->
ht
[
1
].
size
)
else
continue
;
i
=
d
->
rehashidx
;
else
continue
;
}
}
if
(
i
>=
d
->
ht
[
j
].
size
)
continue
;
/* Out of range for this table. */
if
(
i
>=
d
->
ht
[
j
].
size
)
continue
;
/* Out of range for this table. */
dictEntry
*
he
=
d
->
ht
[
j
].
table
[
i
];
dictEntry
*
he
=
d
->
ht
[
j
].
table
[
i
];
...
...
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