misc: chore: Fix object creation in ARMeilleure

This commit is contained in:
Evan Husted 2025-01-26 15:17:12 -06:00
parent 3cdaaa0b69
commit 15d1528774
16 changed files with 30 additions and 30 deletions

View file

@ -130,12 +130,12 @@ namespace ARMeilleure.Common
if (count > _count)
{
long* oldMask = _masks;
Span<long> oldSpan = new Span<long>(_masks, _count);
Span<long> oldSpan = new(_masks, _count);
_masks = _allocator.Allocate<long>((uint)count);
_count = count;
Span<long> newSpan = new Span<long>(_masks, _count);
Span<long> newSpan = new(_masks, _count);
oldSpan.CopyTo(newSpan);
newSpan[oldSpan.Length..].Clear();