fix: Fixes pooled ref list resizing (#1169)

This commit is contained in:
Kamron Batman 2022-09-12 09:06:50 -07:00 committed by GitHub
parent f31cc275bd
commit 4499c8397d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ public ref struct PooledRefList<T>
{
if (value > 0)
{
T[] newItems = ArrayPool.Rent(_size);
T[] newItems = ArrayPool.Rent(value);
if (_size > 0)
{
Array.Copy(_items, newItems, _size);