diff --git a/src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs b/src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs index 96fc6033bf583b..d72dd9995458ba 100644 --- a/src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs +++ b/src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs @@ -4420,7 +4420,7 @@ public static void Sort(this Span keys, Span items, [MethodImpl(MethodImplOptions.AggressiveInlining)] public static unsafe void Replace(this Span span, T oldValue, T newValue) where T : IEquatable? { - nuint length = (uint)span.Length; + uint length = (uint)span.Length; if (RuntimeHelpers.IsBitwiseEquatable()) { @@ -4579,7 +4579,7 @@ static void ReplaceComparer(Span span, T oldValue, T newValue, IEqualityCompa [MethodImpl(MethodImplOptions.AggressiveInlining)] public static unsafe void Replace(this ReadOnlySpan source, Span destination, T oldValue, T newValue) where T : IEquatable? { - nuint length = (uint)source.Length; + uint length = (uint)source.Length; if (length == 0) { return; @@ -4663,7 +4663,7 @@ ref Unsafe.As(ref dst), [MethodImpl(MethodImplOptions.AggressiveInlining)] public static unsafe void Replace(this ReadOnlySpan source, Span destination, T oldValue, T newValue, IEqualityComparer? comparer = null) { - nuint length = (uint)source.Length; + uint length = (uint)source.Length; if (length == 0) { return;