Index: src/pkg/compress/flate/huffman_code.go |
=================================================================== |
--- a/src/pkg/compress/flate/huffman_code.go |
+++ b/src/pkg/compress/flate/huffman_code.go |
@@ -301,7 +301,7 @@ |
// are encoded using "bits" bits, and get the values |
// code, code + 1, .... The code values are |
// assigned in literal order (not frequency order). |
- chunk := list[len(list)-int(bits) : len(list)]; |
+ chunk := list[len(list)-int(bits):]; |
sortByLiteral(chunk); |
for _, node := range chunk { |
h.codeBits[node.literal] = uint8(n); |