Browse Source

fixed invalid goto in CompressBlock

Pierre.Curto 5 years ago
parent
commit
65e4285c56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      block.go

+ 1 - 1
block.go

@@ -195,13 +195,13 @@ func CompressBlock(src, dst []byte, hashTable []int) (_ int, err error) {
 		hashTable[h] = si - 2
 	}
 
+lastLiterals:
 	if isNotCompressible && anchor == 0 {
 		// Incompressible.
 		return 0, nil
 	}
 
 	// Last literals.
-lastLiterals:
 	lLen := len(src) - anchor
 	if lLen < 0xF {
 		dst[di] = byte(lLen << 4)