Skip to content

Commit 70ff40b

Browse files
Update src/ImageSharp/Formats/Jpeg/Components/ColorConverters/JpegColorConverter.RgbArm.cs
Co-authored-by: Günther Foidl <[email protected]>
1 parent 2ba3699 commit 70ff40b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Formats/Jpeg/Components/ColorConverters/JpegColorConverter.RgbArm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public override void ConvertToRgbInplace(in ComponentValues values)
3030

3131
// Used for the color conversion
3232
var scale = Vector128.Create(1 / this.MaximumValue);
33-
nint n = values.Component0.Length / Vector128<float>.Count;
33+
nint n = (nint)(uint)values.Component0.Length / Vector128<float>.Count;
3434
for (nint i = 0; i < n; i++)
3535
{
3636
ref Vector128<float> r = ref Unsafe.Add(ref rBase, i);

0 commit comments

Comments
 (0)