Browse Source

Use nint for offset

Co-authored-by: Günther Foidl <gue@korporal.at>
pull/1881/head
Brian Popow 5 years ago
committed by GitHub
parent
commit
1ae1d8ed66
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/ImageSharp/Formats/Webp/Lossy/LossyUtils.cs

4
src/ImageSharp/Formats/Webp/Lossy/LossyUtils.cs

@ -183,7 +183,7 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossy
private static int Vp8_Sse16xN_Sse2(Span<byte> a, Span<byte> b, int numPairs)
{
Vector128<int> sum = Vector128<int>.Zero;
int offset = 0;
nint offset = 0;
for (int i = 0; i < numPairs; i++)
{
// Load values.
@ -208,7 +208,7 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossy
private static int Vp8_Sse16xN_Avx2(Span<byte> a, Span<byte> b, int numPairs)
{
Vector256<int> sum = Vector256<int>.Zero;
int offset = 0;
nint offset = 0;
for (int i = 0; i < numPairs; i++)
{
// Load values.

Loading…
Cancel
Save