Explorar el Código

Merge pull request #35 from honda-tatsuya/fix-CompressBlockHC

fix CompressBlockHC bug
Pierre Curto hace 7 años
padre
commit
6385392dd2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      block.go

+ 1 - 1
block.go

@@ -286,7 +286,7 @@ func CompressBlockHC(src, dst []byte, depth int) (di int, err error) {
 			for ml < sn-si && src[next+ml] == src[si+ml] {
 				ml++
 			}
-			if ml+1 < minMatch || ml <= mLen {
+			if ml < minMatch || ml <= mLen {
 				// Match too small (<minMath) or smaller than the current match.
 				continue
 			}