Browse Source

gfoidl len check removal

Co-authored-by: Günther Foidl <gue@korporal.at>
pull/1958/head
Dmitry Pentin 5 years ago
committed by GitHub
parent
commit
69458f4f8d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ImageSharp/Formats/Jpeg/Components/ZigZag.Intrinsic.cs

2
src/ImageSharp/Formats/Jpeg/Components/ZigZag.Intrinsic.cs

@ -149,7 +149,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components
{
DebugGuard.IsTrue(Ssse3.IsSupported, "Ssse3 support is required to run this operation!");
fixed (byte* shuffleVectorsPtr = SseShuffleMasks)
fixed (byte* shuffleVectorsPtr = &MemoryMarshal.GetReference(SseShuffleMasks)
{
Vector128<byte> rowA = block.V0.AsByte();
Vector128<byte> rowB = block.V1.AsByte();

Loading…
Cancel
Save