Skip to content

Commit 2c8bf45

Browse files
authored
Fix debug build (#122753)
> /Users/adeel/projects/runtime5/src/coreclr/System.Private.CoreLib/src/System/Threading/Interlocked.CoreCLR.cs(149,9): error IDE0036: Modifiers are not ordered (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0036) [/Users/adeel/projects/runtime5/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj]
1 parent 82562bb commit 2c8bf45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/System.Private.CoreLib/src/System/Threading/Interlocked.CoreCLR.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ internal static unsafe int CompareExchange(int* location1, int value, int compar
146146
}
147147

148148
[MethodImpl(MethodImplOptions.InternalCall)]
149-
private static unsafe extern int CompareExchange32Pointer(int* location1, int value, int comparand);
149+
private static extern unsafe int CompareExchange32Pointer(int* location1, int value, int comparand);
150150

151151
/// <summary>Compares two 64-bit signed integers for equality and, if they are equal, replaces the first value.</summary>
152152
/// <param name="location1">The destination, whose value is compared with <paramref name="comparand"/> and possibly replaced.</param>

0 commit comments

Comments
 (0)