mirror of
https://github.com/fluencelabs/redis
synced 2025-05-28 09:41:19 +00:00
Fix HLL sparse object creation #2.
Two vars initialized to wrong values in createHLLObject().
This commit is contained in:
parent
8b39fee4c8
commit
b6ca71a40a
@ -925,11 +925,11 @@ robj *createHLLObject(void) {
|
||||
|
||||
/* Populate the sparse representation with as many XZERO opcodes as
|
||||
* needed to represent all the registers. */
|
||||
aux = sparselen;
|
||||
aux = HLL_REGISTERS;
|
||||
s = sdsnewlen(NULL,sparselen);
|
||||
p = (uint8_t*)s + HLL_HDR_SIZE;
|
||||
while(aux) {
|
||||
int xzero = HLL_SPARSE_XZERO_MAX_LEN-1;
|
||||
int xzero = HLL_SPARSE_XZERO_MAX_LEN;
|
||||
if (xzero > aux) xzero = aux;
|
||||
HLL_SPARSE_XZERO_SET(p,xzero);
|
||||
p += 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user