Skip to content

Commit

Permalink
Fix commit f08d30f
Browse files Browse the repository at this point in the history
  • Loading branch information
flanglet committed Sep 24, 2024
1 parent 7aea19c commit ad0caed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/entropy/HuffmanCodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (this *HuffmanEncoder) updateFrequencies(freqs []int) (int, error) {

if maxCodeLen > _HUF_MAX_SYMBOL_SIZE_V4 {
// Attempt to limit codes max width
if _, err = this.limitCodeLengths(symbols, freqs, sizes[:], ranks[0:count]); err != nil {
if maxCodeLen, err = this.limitCodeLengths(symbols, freqs, sizes[:], ranks[0:count]); err != nil {
return count, err
}
}
Expand Down

0 comments on commit ad0caed

Please sign in to comment.