"vscode:/vscode.git/clone" did not exist on "8a09e129060435034d75d487e796ef6be8f6e246"
Commit c1ddead7 authored by antirez's avatar antirez
Browse files

Fix HLL sparse object creation.

The function didn't considered the fact that each XZERO opcode is
two bytes.
parent 0a7ba6fa
......@@ -913,8 +913,8 @@ robj *createHLLObject(void) {
sds s;
uint8_t *p;
int sparselen = HLL_HDR_SIZE +
((HLL_REGISTERS+(HLL_SPARSE_XZERO_MAX_LEN-1)) /
HLL_SPARSE_XZERO_MAX_LEN);
(((HLL_REGISTERS+(HLL_SPARSE_XZERO_MAX_LEN-1)) /
HLL_SPARSE_XZERO_MAX_LEN)*2);
int aux;
/* Populate the sparse representation with as many XZERO opcodes as
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment