diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Infrastructure/MemoryPoolIterator.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Infrastructure/MemoryPoolIterator.cs index 34f8b44608..daf2d20f5c 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Infrastructure/MemoryPoolIterator.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Infrastructure/MemoryPoolIterator.cs @@ -775,8 +775,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure internal static int LocateFirstFoundByte(ref Vector byteEquals) { var vector64 = Vector.AsVectorInt64(byteEquals); - var i = 0; long longValue = 0; + var i = 0; for (; i < Vector.Count; i++) { longValue = vector64[i];