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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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.
|
|
|
|
|