From 873486bc1a3425eb350cde6a87d3914b3ae853b3 Mon Sep 17 00:00:00 2001 From: Ashley Svetlik Date: Thu, 20 Jun 2019 14:43:55 -0500 Subject: [PATCH] Removed no containers pilosa format fix --- roaring/roaring.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roaring/roaring.go b/roaring/roaring.go index fe69140c7..1adbc102e 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -1102,7 +1102,7 @@ func (b *Bitmap) writeToUnoptimized(w io.Writer) (n int64, err error) { // unmarshalPilosaRoaring treats data as being encoded in Pilosa's 64 bit // roaring format and decodes it into b. func (b *Bitmap) unmarshalPilosaRoaring(data []byte) error { - if len(data) <= headerBaseSize { + if len(data) < headerBaseSize { return errors.New("data too small") } @@ -3954,7 +3954,7 @@ func (op *op) WriteTo(w io.Writer) (n int64, err error) { } var minOpSize = 13 -var maxBatchSize = uint64(1<<59) +var maxBatchSize = uint64(1 << 59) // UnmarshalBinary decodes data into an op. func (op *op) UnmarshalBinary(data []byte) error {