Skip to content

Commit 33be868

Browse files
Poker-sanggfoidl
andauthored
Apply suggestions from code review
Co-authored-by: Günther Foidl <[email protected]>
1 parent e58010a commit 33be868

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/ImageSharp/Formats/Ani/AniDecoderCore.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace SixLabors.ImageSharp.Formats.Ani;
2121

2222
internal class AniDecoderCore(DecoderOptions options) : ImageDecoderCore(options)
2323
{
24-
private enum ListIconChunkType
24+
private enum ListIconChunkType : byte
2525
{
2626
Ico = 1,
2727
Cur = 2,

Diff for: src/ImageSharp/Formats/Ani/AniHeader.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal readonly struct AniHeader
2828

2929
public static ref AniHeader Parse(ReadOnlySpan<byte> data) => ref Unsafe.As<byte, AniHeader>(ref MemoryMarshal.GetReference(data));
3030

31-
public void WriteTo(in Stream stream) => stream.Write(MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(in this, 1)));
31+
public void WriteTo(Stream stream) => stream.Write(MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(in this, 1)));
3232
}
3333

3434
/// <summary>

0 commit comments

Comments
 (0)