Browse Source

Fix JIT issue on 32bit framework

pull/729/head
James Jackson-South 7 years ago
parent
commit
b14c35ffaf
  1. 4
      src/ImageSharp/PixelFormats/Rgba32.cs

4
src/ImageSharp/PixelFormats/Rgba32.cs

@ -133,7 +133,9 @@ namespace SixLabors.ImageSharp.PixelFormats
/// </summary>
public Rgb24 Rgb
{
[MethodImpl(InliningOptions.ShortMethod)]
// If this is changed to ShortMethod then several jpeg encoding tests fail
// on 32 bit Net 4.6.2 and NET 4.7.1
[MethodImpl(InliningOptions.ColdPath)]
get => Unsafe.As<Rgba32, Rgb24>(ref this);
[MethodImpl(InliningOptions.ShortMethod)]

Loading…
Cancel
Save