mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 00:38:10 +02:00
Remove unnecessary copy of the decoder array
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user