Browse Source

Fixed a build error

pull/1133/head
Sergio Pedri 6 years ago
parent
commit
8ad8a5969e
  1. 3
      src/ImageSharp/Common/Extensions/StreamExtensions.cs
  2. 2
      tests/ImageSharp.Tests/Metadata/Profiles/Exif/ExifProfileTests.cs

3
src/ImageSharp/Common/Extensions/StreamExtensions.cs

@ -4,6 +4,9 @@
using System;
using System.IO;
using SixLabors.ImageSharp.Memory;
#if !SUPPORTS_SPAN_STREAM
using System.Buffers;
#endif
namespace SixLabors.ImageSharp
{

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

@ -394,7 +394,7 @@ namespace SixLabors.ImageSharp.Tests
public void ProfileToByteArray()
{
// Arrange
byte[] exifBytesWithoutExifCode = ExifConstants.LittleEndianByteOrderMarker;
byte[] exifBytesWithoutExifCode = ExifConstants.LittleEndianByteOrderMarker.ToArray();
ExifProfile expectedProfile = CreateExifProfile();
var expectedProfileTags = expectedProfile.Values.Select(x => x.Tag).ToList();

Loading…
Cancel
Save