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
10bc0aea
Commit
10bc0aea
authored
Apr 14, 2014
by
antirez
Browse files
hllSparseAdd() opcode seek stop condition fixed.
parent
8be9394e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
10bc0aea
...
...
@@ -668,7 +668,7 @@ int hllSparseAdd(robj *o, unsigned char *ele, size_t elesize) {
else
if
(
HLL_SPARSE_IS_XZERO
(
p
))
span
=
HLL_SPARSE_XZERO_LEN
(
p
);
else
span
=
HLL_SPARSE_VAL_LEN
(
p
);
/* Break if this opcode covers the register as 'index'. */
if
(
first
+
span
>=
index
)
break
;
if
(
index
<=
first
+
span
-
1
)
break
;
prev
=
p
;
p
+=
(
HLL_SPARSE_IS_XZERO
(
p
))
?
2
:
1
;
first
+=
span
;
...
...
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