diff --git a/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs b/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs index 94257517d2..b9b32dede7 100644 --- a/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs +++ b/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs @@ -1597,8 +1597,8 @@ internal sealed class BmpDecoderCore : ImageDecoderCore if (palette.Length > 0) { - Color[] colorTable = new Color[palette.Length / Unsafe.SizeOf()]; - ReadOnlySpan rgbTable = MemoryMarshal.Cast(palette); + Color[] colorTable = new Color[palette.Length / Unsafe.SizeOf()]; + ReadOnlySpan rgbTable = MemoryMarshal.Cast(palette); Color.FromPixel(rgbTable, colorTable); this.bmpMetadata.ColorTable = colorTable; }