summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/flate
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-03-11 10:51:13 +0000
committerLibravatar GitHub <noreply@github.com>2024-03-11 10:51:13 +0000
commit8e88ee8d9c3740a76139566837199831dabdf997 (patch)
treee331d9e0acfb1c975a72aee3105e0f1fba6ca128 /vendor/github.com/klauspost/compress/flate
parent[chore]: Bump github.com/go-jose/go-jose/v3 from 3.0.1 to 3.0.3 (#2733) (diff)
downloadgotosocial-8e88ee8d9c3740a76139566837199831dabdf997.tar.xz
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.67 to 7.0.69 (#2748)
Diffstat (limited to 'vendor/github.com/klauspost/compress/flate')
-rw-r--r--vendor/github.com/klauspost/compress/flate/deflate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/klauspost/compress/flate/deflate.go b/vendor/github.com/klauspost/compress/flate/deflate.go
index de912e187..66d1657d2 100644
--- a/vendor/github.com/klauspost/compress/flate/deflate.go
+++ b/vendor/github.com/klauspost/compress/flate/deflate.go
@@ -212,7 +212,7 @@ func (d *compressor) writeBlockSkip(tok *tokens, index int, eof bool) error {
// Should only be used after a start/reset.
func (d *compressor) fillWindow(b []byte) {
// Do not fill window if we are in store-only or huffman mode.
- if d.level <= 0 {
+ if d.level <= 0 && d.level > -MinCustomWindowSize {
return
}
if d.fast != nil {