We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c32a09 commit 4e9428cCopy full SHA for 4e9428c
encoding/da.go
@@ -497,13 +497,13 @@ func checkCompressedDataCompatibilityV7(data []byte) error {
497
isLast = (data[0] & 1) == 1
498
blkType := (data[0] >> 1) & 3
499
var blkSize uint
500
- if blkType == 1 {// RLE Block
+ if blkType == 1 { // RLE Block
501
blkSize = 1
502
} else {
503
if blkType == 3 {
504
return fmt.Errorf("encounter reserved block type at %v", data)
505
}
506
- blkSize = (uint(data[2])*65536 + uint(data[1])*256 + uint(data[0])) >> 3
+ blkSize = (uint(data[2])*65536 + uint(data[1])*256 + uint(data[0])) >> 3
507
508
if len(data) < 3+int(blkSize) {
509
return fmt.Errorf("wrong data len {%d}, expect min {%d}", len(data), 3+blkSize)
0 commit comments