Remove unnecessary copy of the decoder array

This commit is contained in:
Kovid Goyal
2023-09-04 22:28:18 +05:30
parent 1f4386fd08
commit d1d888ce19
2 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ func TestBase85(t *testing.T) {
t.Fatalf("Encoded len for %#v wrong: %d != %d", x, el, EncodedLen(len(a)))
}
encoded := dst[:el]
dl, bad_idx := decodeChunk(&decode, dst2[:], encoded)
dl, bad_idx := decodeChunk(decode, dst2[:], encoded)
if bad_idx != 0 {
t.Fatalf("Decode for %#v returned bad data at: %d (%#v)", x, bad_idx, encoded)
}