Skip to content

Commit 3ae87c1

Browse files
committed
Reverted moving the IsArm64 property.
1 parent a906600 commit 3ae87c1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Magick.NET/Helpers/Runtime.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ internal static partial class Runtime
1010
{
1111
public static bool Is64Bit { get; } = IntPtr.Size == 8;
1212

13+
public static bool IsArm64 { get; } = RuntimeInformation.ProcessArchitecture == Architecture.Arm64;
14+
1315
public static bool IsWindows { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
1416
}

tests/Magick.NET.Tests/TestHelpers/TestRuntime.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@
22
// Licensed under the Apache License, Version 2.0.
33

44
using System.Runtime.InteropServices;
5+
using ImageMagick;
56

67
namespace Magick.NET.Tests;
78

89
internal static class TestRuntime
910
{
1011
public static bool HasFlakyLinuxArm64Result
11-
=> IsLinux && IsArm64;
12+
=> IsLinux && Runtime.IsArm64;
1213

1314
public static bool HasFlakyMacOSResult
1415
=> IsMacOS;
1516

1617
public static bool HasFlakyMacOSArm64Result
17-
=> IsMacOS && IsArm64;
18-
19-
private static bool IsArm64 { get; } = RuntimeInformation.ProcessArchitecture == Architecture.Arm64;
18+
=> IsMacOS && Runtime.IsArm64;
2019

2120
private static bool IsLinux { get; } = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
2221

0 commit comments

Comments
 (0)