From 353f2e2bd9200c461cbe4cba32bf3cfbe0d4d8f1 Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Thu, 15 Sep 2022 19:19:41 +0200 Subject: [PATCH 1/2] Fix for issue #2117 --- src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs b/src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs index b8e0e4addf..70b6ddd693 100644 --- a/src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs +++ b/src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs @@ -149,7 +149,7 @@ public uint PackedValue /// [MethodImpl(InliningOptions.ShortMethod)] - public void FromVector4(Vector4 vector) => this.Pack(ref vector); + public void FromVector4(Vector4 vector) => this.Pack(vector); /// [MethodImpl(InliningOptions.ShortMethod)] @@ -302,7 +302,7 @@ public void FromRgba64(Rgba64 source) /// /// The vector containing the values to pack. [MethodImpl(InliningOptions.ShortMethod)] - private void Pack(ref Vector4 vector) + private void Pack(Vector4 vector) { vector *= MaxBytes; vector += Half; From 0c62aebc03381a897dcfec2855ca6f1f8a0844fb Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 16 Sep 2022 10:45:42 +1000 Subject: [PATCH 2/2] Enable .NET 7 workflows --- .github/workflows/build-and-test.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index cd59dca803..cd741acd83 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -20,20 +20,18 @@ jobs: sdk-preview: true runtime: -x64 codecov: false - # Temp disabled due to runtime preview issues. - # https://github.com/SixLabors/ImageSharp/issues/2117 - #- os: macos-latest - # framework: net7.0 - # sdk: 7.0.x - # sdk-preview: true - # runtime: -x64 - # codecov: false - #- os: windows-latest - # framework: net7.0 - # sdk: 7.0.x - # sdk-preview: true - # runtime: -x64 - # codecov: false + - os: macos-latest + framework: net7.0 + sdk: 7.0.x + sdk-preview: true + runtime: -x64 + codecov: false + - os: windows-latest + framework: net7.0 + sdk: 7.0.x + sdk-preview: true + runtime: -x64 + codecov: false - os: ubuntu-latest framework: net6.0 sdk: 6.0.x