Skip to content

Commit

Permalink
Merge branch 'main' into alanwest/telemetry-sdk-attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwest authored Apr 6, 2023
2 parents 65825a0 + 0004895 commit 0a3a9bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/OpenTelemetry.Api/Internal/Guard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public CallerArgumentExpressionAttribute(string parameterName)
}
#endif

#if !NETCOREAPP3_0_OR_GREATER && !NETSTANDARD2_1_OR_GREATER
#if !NET6_0_OR_GREATER && !NETSTANDARD2_1_OR_GREATER
namespace System.Diagnostics.CodeAnalysis
{
/// <summary>Specifies that an output is not <see langword="null"/> even if
Expand Down
4 changes: 2 additions & 2 deletions src/OpenTelemetry/Internal/MathHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// </copyright>

using System.Diagnostics;
#if NETCOREAPP3_0_OR_GREATER
#if NET6_0_OR_GREATER
using System.Numerics;
#endif
using System.Runtime.CompilerServices;
Expand Down Expand Up @@ -86,7 +86,7 @@ public static int LeadingZero32(int value)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int LeadingZero64(long value)
{
#if NETCOREAPP3_0_OR_GREATER
#if NET6_0_OR_GREATER
return BitOperations.LeadingZeroCount((ulong)value);
#else
unchecked
Expand Down

0 comments on commit 0a3a9bb

Please sign in to comment.