mirror of
https://github.com/fluencelabs/redis
synced 2025-04-30 04:52:13 +00:00
Fix HLL sparse object creation.
The function didn't considered the fact that each XZERO opcode is two bytes.
This commit is contained in:
parent
ccbabf01e1
commit
e526d32635
@ -913,8 +913,8 @@ robj *createHLLObject(void) {
|
|||||||
sds s;
|
sds s;
|
||||||
uint8_t *p;
|
uint8_t *p;
|
||||||
int sparselen = HLL_HDR_SIZE +
|
int sparselen = HLL_HDR_SIZE +
|
||||||
((HLL_REGISTERS+(HLL_SPARSE_XZERO_MAX_LEN-1)) /
|
(((HLL_REGISTERS+(HLL_SPARSE_XZERO_MAX_LEN-1)) /
|
||||||
HLL_SPARSE_XZERO_MAX_LEN);
|
HLL_SPARSE_XZERO_MAX_LEN)*2);
|
||||||
int aux;
|
int aux;
|
||||||
|
|
||||||
/* Populate the sparse representation with as many XZERO opcodes as
|
/* Populate the sparse representation with as many XZERO opcodes as
|
||||||
|
Loading…
x
Reference in New Issue
Block a user