Skip to content

Vector sample code has issue which will cause out of range related exception #26195

@lateapexearlyspeed

Description

@lateapexearlyspeed

In https://github.com/dotnet/docs/blob/main/docs/standard/simd.md, Vector sample code, it has logic of handling case about input array length not be integral multiple of Vector.Count (see green block),
but first half of code cannot handle it and will throw out of range related exception if happens (see red block)

image


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnet-fundamentals/svcokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions