Browse Source

Merge branch 'master' into v3

Pierre.Curto 5 years ago
parent
commit
76b19f543a
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
 		hashTable[h] = si - 2
 	}
 	}
 
 
+lastLiterals:
 	if isNotCompressible && anchor == 0 {
 	if isNotCompressible && anchor == 0 {
 		// Incompressible.
 		// Incompressible.
 		return 0, nil
 		return 0, nil
 	}
 	}
 
 
 	// Last literals.
 	// Last literals.
-lastLiterals:
 	lLen := len(src) - anchor
 	lLen := len(src) - anchor
 	if lLen < 0xF {
 	if lLen < 0xF {
 		dst[di] = byte(lLen << 4)
 		dst[di] = byte(lLen << 4)