Revert "Fix small bug in RLE"
This reverts commit 6ed57ede6a
.
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
e441b48ea7
commit
70aaa8fc92
@ -84,7 +84,7 @@ func (bv *wbitvec) Out() []byte {
|
|||||||
}
|
}
|
||||||
if bv.bitCap > 8 {
|
if bv.bitCap > 8 {
|
||||||
// if we store some needed bits in second byte, save them also
|
// if we store some needed bits in second byte, save them also
|
||||||
bv.buf = append(bv.buf, byte(bv.bits>>8))
|
bv.buf = append(bv.buf, byte(bv.bitCap>>8))
|
||||||
bv.index++
|
bv.index++
|
||||||
bv.bits = bv.bits - 8
|
bv.bits = bv.bits - 8
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
func Sum(a, b RunIterator) (RunIterator, error) {
|
func Sum(a, b RunIterator) (RunIterator, error) {
|
||||||
it := addIt{a: a, b: b}
|
it := addIt{a: a, b: b}
|
||||||
|
it.prep()
|
||||||
return &it, it.prep()
|
return &it, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type addIt struct {
|
type addIt struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user