message-size-increase #3

Open
sashakoshka wants to merge 132 commits from message-size-increase into main
Showing only changes of commit 5989a82bee - Show all commits

View File

@ -129,7 +129,7 @@ func decodeAny(decoder *Decoder, destination reflect.Value, tag Tag) (n int, err
return n, errWrongDestinationType("slice")
}
if destination.Cap() < int(length) {
destination.Grow(destination.Cap() - int(length))
destination.Grow(int(length) - destination.Cap())
}
destination.SetLen(int(length))
for index := range length {