diff --git a/tests/ImageSharp.Tests/PixelFormats/AssociatedAlphaPixelTests.cs b/tests/ImageSharp.Tests/PixelFormats/AssociatedAlphaPixelTests.cs index 07a5c4dcc..e32cfec18 100644 --- a/tests/ImageSharp.Tests/PixelFormats/AssociatedAlphaPixelTests.cs +++ b/tests/ImageSharp.Tests/PixelFormats/AssociatedAlphaPixelTests.cs @@ -354,7 +354,7 @@ public class HalfVector4PTests : AssociatedAlphaPixelTests const int distributedFloatCount = ushort.MaxValue + 1; const int componentCount = (ushort.MaxValue + 1) + (finitePositiveHalfCount * 2) + distributedFloatCount + 2; Vector4[] source = new Vector4[componentCount / 4]; - Span components = MemoryMarshal.Cast(source); + Span components = MemoryMarshal.Cast(source.AsSpan()); int index = 0; for (int bits = 0; bits <= ushort.MaxValue; bits++)