Skip to content

Commit 8ad8a59

Browse files
committed
Fixed a build error
1 parent f907f90 commit 8ad8a59

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/ImageSharp/Common/Extensions/StreamExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
using System;
55
using System.IO;
66
using SixLabors.ImageSharp.Memory;
7+
#if !SUPPORTS_SPAN_STREAM
8+
using System.Buffers;
9+
#endif
710

811
namespace SixLabors.ImageSharp
912
{

tests/ImageSharp.Tests/Metadata/Profiles/Exif/ExifProfileTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public void WritingImagePreservesExifProfile(TestImageWriteFormat imageFormat)
394394
public void ProfileToByteArray()
395395
{
396396
// Arrange
397-
byte[] exifBytesWithoutExifCode = ExifConstants.LittleEndianByteOrderMarker;
397+
byte[] exifBytesWithoutExifCode = ExifConstants.LittleEndianByteOrderMarker.ToArray();
398398
ExifProfile expectedProfile = CreateExifProfile();
399399
var expectedProfileTags = expectedProfile.Values.Select(x => x.Tag).ToList();
400400

0 commit comments

Comments
 (0)