summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/flate/token.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-05 05:39:25 -0500
committerGitHub <noreply@github.com>2020-03-05 05:39:25 -0500
commit0356c0ed91f17e0276c95be8460348ae470f8e05 (patch)
tree602a93523d12c1d860fdcadc642493f7052d51dc /vendor/github.com/klauspost/compress/flate/token.go
parent8a8c2fea69ab800f11484f7cac429e604dbb1f50 (diff)
parent0015c376a300ed5aaf5170f90159736a9e58212e (diff)
downloadpodman-0356c0ed91f17e0276c95be8460348ae470f8e05.tar.gz
podman-0356c0ed91f17e0276c95be8460348ae470f8e05.tar.bz2
podman-0356c0ed91f17e0276c95be8460348ae470f8e05.zip
Merge pull request #5397 from rhatdan/vendor
Vendor buildah 1.14.2
Diffstat (limited to 'vendor/github.com/klauspost/compress/flate/token.go')
-rw-r--r--vendor/github.com/klauspost/compress/flate/token.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/klauspost/compress/flate/token.go b/vendor/github.com/klauspost/compress/flate/token.go
index 099c0ddbc..f9abf606d 100644
--- a/vendor/github.com/klauspost/compress/flate/token.go
+++ b/vendor/github.com/klauspost/compress/flate/token.go
@@ -262,7 +262,7 @@ func (t *tokens) EstimatedBits() int {
// AddMatch adds a match to the tokens.
// This function is very sensitive to inlining and right on the border.
func (t *tokens) AddMatch(xlength uint32, xoffset uint32) {
- if debugDecode {
+ if debugDeflate {
if xlength >= maxMatchLength+baseMatchLength {
panic(fmt.Errorf("invalid length: %v", xlength))
}
@@ -281,7 +281,7 @@ func (t *tokens) AddMatch(xlength uint32, xoffset uint32) {
// AddMatchLong adds a match to the tokens, potentially longer than max match length.
// Length should NOT have the base subtracted, only offset should.
func (t *tokens) AddMatchLong(xlength int32, xoffset uint32) {
- if debugDecode {
+ if debugDeflate {
if xoffset >= maxMatchOffset+baseMatchOffset {
panic(fmt.Errorf("invalid offset: %v", xoffset))
}