diff --git a/lib/encoding/nearest_delta2.go b/lib/encoding/nearest_delta2.go index 3e3013cf4..5bd175561 100644 --- a/lib/encoding/nearest_delta2.go +++ b/lib/encoding/nearest_delta2.go @@ -71,8 +71,7 @@ func unmarshalInt64NearestDelta2(dst []int64, src []byte, firstValue int64, item } dstLen := len(dst) - dst = slicesutil.ExtendCapacity(dst, itemsCount) - dst = dst[:dstLen+itemsCount] + dst = slicesutil.SetLength(dst, dstLen+itemsCount) as := dst[dstLen:] v := firstValue