mirror of
https://github.com/fluencelabs/redis
synced 2025-03-16 15:40:49 +00:00
hllSparseAdd() opcode seek stop condition fixed.
This commit is contained in:
parent
1ee18db922
commit
142d133c8a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user