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
91e6b4d7
Commit
91e6b4d7
authored
Aug 26, 2014
by
antirez
Browse files
Fix dictRehash assert casting type.
Also related to #1929.
parent
72aa797c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dict.c
View file @
91e6b4d7
...
@@ -251,7 +251,7 @@ int dictRehash(dict *d, int n) {
...
@@ -251,7 +251,7 @@ int dictRehash(dict *d, int n) {
/* Note that rehashidx can't overflow as we are sure there are more
/* Note that rehashidx can't overflow as we are sure there are more
* elements because ht[0].used != 0 */
* elements because ht[0].used != 0 */
assert
(
d
->
ht
[
0
].
size
>
(
unsigned
)
d
->
rehashidx
);
assert
(
d
->
ht
[
0
].
size
>
(
unsigned
long
)
d
->
rehashidx
);
while
(
d
->
ht
[
0
].
table
[
d
->
rehashidx
]
==
NULL
)
d
->
rehashidx
++
;
while
(
d
->
ht
[
0
].
table
[
d
->
rehashidx
]
==
NULL
)
d
->
rehashidx
++
;
de
=
d
->
ht
[
0
].
table
[
d
->
rehashidx
];
de
=
d
->
ht
[
0
].
table
[
d
->
rehashidx
];
/* Move all the keys in this bucket from the old to the new hash HT */
/* Move all the keys in this bucket from the old to the new hash HT */
...
...
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