diff --git a/src/libraries/System.Private.CoreLib/src/System/SpanHelpers.T.cs b/src/libraries/System.Private.CoreLib/src/System/SpanHelpers.T.cs index 3cb8c9087498a7..8e53a21801ec29 100644 --- a/src/libraries/System.Private.CoreLib/src/System/SpanHelpers.T.cs +++ b/src/libraries/System.Private.CoreLib/src/System/SpanHelpers.T.cs @@ -3974,7 +3974,7 @@ internal static int NonPackedIndexOfAnyInRangeUnsignedNumber(ref T return ComputeFirstIndex(ref searchSpace, ref current, inRangeVector); } - current = ref Unsafe.Add(ref current, Vector256.Count); + current = ref Unsafe.Add(ref current, Vector512.Count); } while (Unsafe.IsAddressLessThan(ref current, ref oneVectorAwayFromEnd));