Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
flanglet committed Apr 7, 2024
1 parent 83fc32d commit d7030a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v2/io/CompressedStream.go
Original file line number Diff line number Diff line change
Expand Up @@ -1101,11 +1101,12 @@ func (this *Reader) readHeader() error {

this.ctx["blockSize"] = uint(this.blockSize)
this.bufferThreshold = this.blockSize
szMask := uint(0)

if bsVersion >= 5 {
// Read original size
// 0 -> not provided, <2^16 -> 1, <2^32 -> 2, <2^48 -> 3
szMask := uint(this.ibs.ReadBits(2))
szMask = uint(this.ibs.ReadBits(2))

if szMask != 0 {
this.outputSize = int64(this.ibs.ReadBits(16 * szMask))
Expand Down

0 comments on commit d7030a4

Please sign in to comment.