1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:24:41 -07:00

compress/flate: undo misuse of skipNever

I assume this was a too aggressive search-and-replace.

R=imkrasin
CC=golang-dev
https://golang.org/cl/5580047
This commit is contained in:
Russ Cox 2012-01-30 13:24:20 -05:00
parent e451fb8ffb
commit cb34f5c357

View File

@ -102,7 +102,7 @@ func (d *compressor) fillDeflate(b []byte) int {
if d.blockStart >= windowSize { if d.blockStart >= windowSize {
d.blockStart -= windowSize d.blockStart -= windowSize
} else { } else {
d.blockStart = skipNever d.blockStart = math.MaxInt32
} }
d.hashOffset += windowSize d.hashOffset += windowSize
} }