Browse Source

Unsafe.Add fix

pull/2076/head
Dmitry Pentin 4 years ago
parent
commit
f011dcc0d0
  1. 2
      src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor8.cs

2
src/ImageSharp/Formats/Jpeg/Components/Decoder/ComponentProcessors/DownScalingComponentProcessor8.cs

@ -60,7 +60,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
{ {
if (horizontalScale == 1 && verticalScale == 1) if (horizontalScale == 1 && verticalScale == 1)
{ {
Unsafe.Add(ref destRef, 0) = value; destRef = value;
return; return;
} }

Loading…
Cancel
Save