summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/huff0/compress.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-12 18:25:00 +0200
committerGitHub <noreply@github.com>2021-04-12 18:25:00 +0200
commit7203e0a76a82e278b6a41e7a5851463a0b2f571e (patch)
tree04252a3261ecba007ace7055154fc8d2ce8a9aea /vendor/github.com/klauspost/compress/huff0/compress.go
parent3803a2630f2bc53f18cbf2b7a825ff1b068a0fb7 (diff)
parent3627c4b691a357fc531c2761f07ccfecf937dd12 (diff)
downloadpodman-7203e0a76a82e278b6a41e7a5851463a0b2f571e.tar.gz
podman-7203e0a76a82e278b6a41e7a5851463a0b2f571e.tar.bz2
podman-7203e0a76a82e278b6a41e7a5851463a0b2f571e.zip
Merge pull request #9994 from containers/dependabot/go_modules/github.com/containers/image/v5-5.11.0
Bump github.com/containers/image/v5 from 5.10.5 to 5.11.0
Diffstat (limited to 'vendor/github.com/klauspost/compress/huff0/compress.go')
-rw-r--r--vendor/github.com/klauspost/compress/huff0/compress.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/klauspost/compress/huff0/compress.go b/vendor/github.com/klauspost/compress/huff0/compress.go
index f9ed5f830..dea115b33 100644
--- a/vendor/github.com/klauspost/compress/huff0/compress.go
+++ b/vendor/github.com/klauspost/compress/huff0/compress.go
@@ -403,7 +403,7 @@ func (s *Scratch) buildCTable() error {
var startNode = int16(s.symbolLen)
nonNullRank := s.symbolLen - 1
- nodeNb := int16(startNode)
+ nodeNb := startNode
huffNode := s.nodes[1 : huffNodesLen+1]
// This overlays the slice above, but allows "-1" index lookups.
@@ -580,7 +580,7 @@ func (s *Scratch) setMaxHeight(lastNonNull int) uint8 {
// Get pos of last (smallest) symbol per rank
{
- currentNbBits := uint8(maxNbBits)
+ currentNbBits := maxNbBits
for pos := int(n); pos >= 0; pos-- {
if huffNode[pos].nbBits >= currentNbBits {
continue