Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7dd1e952
Commit
7dd1e952
authored
May 24, 2011
by
antirez
Browse files
Fixed typo in comment
parent
d89db584
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
7dd1e952
...
...
@@ -1527,7 +1527,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
score
=
src
[
0
].
weight
*
zval
.
score
;
for
(
j
=
1
;
j
<
setnum
;
j
++
)
{
/* It is not safe to access the
hash we
zset we are
/* It is not safe to access the zset we are
* iterating, so explicitly check for equal object. */
if
(
src
[
j
].
subject
==
src
[
0
].
subject
)
{
value
=
zval
.
score
*
src
[
j
].
weight
;
...
...
@@ -1572,7 +1572,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
/* Because the inputs are sorted by size, it's only possible
* for sets at larger indices to hold this element. */
for
(
j
=
(
i
+
1
);
j
<
setnum
;
j
++
)
{
/* It is not safe to access the
hash we
zset we are
/* It is not safe to access the zset we are
* iterating, so explicitly check for equal object. */
if
(
src
[
j
].
subject
==
src
[
i
].
subject
)
{
value
=
zval
.
score
*
src
[
j
].
weight
;
...
...
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