Skip to content

Commit

Permalink
Merge pull request RoaringBitmap#324 from pforemski/master
Browse files Browse the repository at this point in the history
fix deserialization when size=0xFFFF
  • Loading branch information
lemire authored Jul 6, 2021
2 parents 86ac70e + 5f54fba commit ff33c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roaringarray.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ func (ra *roaringArray) readFrom(stream internal.ByteInput, cookieHeader ...byte
var isRunBitmap []byte

if cookie&0x0000FFFF == serialCookie {
size = uint32(uint16(cookie>>16) + 1)
size = uint32(cookie>>16 + 1)
// create is-run-container bitmap
isRunBitmapSize := (int(size) + 7) / 8
isRunBitmap, err = stream.Next(isRunBitmapSize)
Expand Down

0 comments on commit ff33c3b

Please sign in to comment.