summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/zstd/bytebuf.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/zstd/bytebuf.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/zstd/bytebuf.go')
-rw-r--r--vendor/github.com/klauspost/compress/zstd/bytebuf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/klauspost/compress/zstd/bytebuf.go b/vendor/github.com/klauspost/compress/zstd/bytebuf.go
index 07321acb1..658ef7838 100644
--- a/vendor/github.com/klauspost/compress/zstd/bytebuf.go
+++ b/vendor/github.com/klauspost/compress/zstd/bytebuf.go
@@ -30,7 +30,7 @@ type byteBuffer interface {
type byteBuf []byte
func (b *byteBuf) readSmall(n int) []byte {
- if debug && n > 8 {
+ if debugAsserts && n > 8 {
panic(fmt.Errorf("small read > 8 (%d). use readBig", n))
}
bb := *b
@@ -82,7 +82,7 @@ type readerWrapper struct {
}
func (r *readerWrapper) readSmall(n int) []byte {
- if debug && n > 8 {
+ if debugAsserts && n > 8 {
panic(fmt.Errorf("small read > 8 (%d). use readBig", n))
}
n2, err := io.ReadFull(r.r, r.tmp[:n])