|
|
|
@ -104,7 +104,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components |
|
|
|
{ |
|
|
|
GuardBlockIndex(idx); |
|
|
|
ref float selfRef = ref Unsafe.As<Block8x8F, float>(ref this); |
|
|
|
return Unsafe.Add(ref selfRef, idx); |
|
|
|
return Unsafe.Add(ref selfRef, (nint)(uint)idx); |
|
|
|
} |
|
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|
|
|
@ -112,7 +112,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components |
|
|
|
{ |
|
|
|
GuardBlockIndex(idx); |
|
|
|
ref float selfRef = ref Unsafe.As<Block8x8F, float>(ref this); |
|
|
|
Unsafe.Add(ref selfRef, idx) = value; |
|
|
|
Unsafe.Add(ref selfRef, (nint)(uint)idx) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|