Fix seqlen computation in hllSparseAdd().
This commit is contained in:
parent
a9e057e095
commit
3c3c16561a
@ -779,7 +779,7 @@ int hllSparseAdd(robj *o, unsigned char *ele, size_t elesize) {
|
|||||||
*
|
*
|
||||||
* Note that we already allocated space on the sds string
|
* Note that we already allocated space on the sds string
|
||||||
* calling sdsMakeRoomFor(). */
|
* calling sdsMakeRoomFor(). */
|
||||||
int seqlen = seq-n;
|
int seqlen = n-seq;
|
||||||
int oldlen = is_xzero ? 2 : 1;
|
int oldlen = is_xzero ? 2 : 1;
|
||||||
int deltalen = seqlen-oldlen;
|
int deltalen = seqlen-oldlen;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user