We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07c16a5 + fb8b82d commit 20f4bfbCopy full SHA for 20f4bfb
src/ImageSharp/Formats/Jpeg/Components/Block8x8.cs
@@ -35,7 +35,7 @@ internal unsafe struct Block8x8 : IEquatable<Block8x8>
35
public Block8x8(Span<short> coefficients)
36
{
37
ref byte selfRef = ref Unsafe.As<Block8x8, byte>(ref this);
38
- ref byte sourceRef = ref MemoryMarshal.GetReference(MemoryMarshal.Cast<short, byte>(coefficients));
+ ref byte sourceRef = ref Unsafe.As<short, byte>(ref MemoryMarshal.GetReference(coefficients));
39
Unsafe.CopyBlock(ref selfRef, ref sourceRef, Size * sizeof(short));
40
}
41
0 commit comments