Skip to content

Commit

Permalink
Merge pull request #2688 from SixLabors/js/backport-2681
Browse files Browse the repository at this point in the history
Backport 2681
  • Loading branch information
JimBobSquarePants committed Mar 6, 2024
2 parents e74a55f + 36b3533 commit fa7d712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<!-- Compilation properties. -->
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!--<TreatWarningsAsErrors>true</TreatWarningsAsErrors>-->
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Png/PngDecoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private void ReadGammaChunk(PngMetadata pngMetadata, ReadOnlySpan<byte> data)
private void InitializeImage<TPixel>(ImageMetadata metadata, out Image<TPixel> image)
where TPixel : unmanaged, IPixel<TPixel>
{
image = Image.CreateUninitialized<TPixel>(
image = new Image<TPixel>(
this.Configuration,
this.header.Width,
this.header.Height,
Expand Down

0 comments on commit fa7d712

Please sign in to comment.