Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<mdspan>: Avoid -Wsign-compare warnings #4227

Merged
merged 1 commit into from Dec 7, 2023

Conversation

StephanTLavavej
Copy link
Member

@StephanTLavavej StephanTLavavej commented Dec 2, 2023

Test coverage will be provided by the upcoming libcxx update, which complained:

mdspan(541,49): error: comparison of integers of different signs: 'index_type' (aka 'unsigned long long') and 'index_type' (aka 'int') [-Werror,-Wsign-compare]

Varying signedness is allowed by WG21-N4964 [mdspan.extents.overview]/1.1 "IndexType is a signed or unsigned integer type".

mdspan(541,49): error: comparison of integers of different signs: 'index_type' (aka 'unsigned long long') and 'index_type' (aka 'int') [-Werror,-Wsign-compare]
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Dec 2, 2023
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner December 2, 2023 00:55
@github-actions github-actions bot added this to Initial Review in Code Reviews Dec 2, 2023
@StephanTLavavej StephanTLavavej added the mdspan C++23 mdspan label Dec 2, 2023
@StephanTLavavej StephanTLavavej moved this from Initial Review to Final Review in Code Reviews Dec 2, 2023
@CaseyCarter CaseyCarter removed their assignment Dec 6, 2023
@CaseyCarter CaseyCarter moved this from Final Review to Ready To Merge in Code Reviews Dec 6, 2023
@StephanTLavavej StephanTLavavej self-assigned this Dec 7, 2023
@StephanTLavavej
Copy link
Member Author

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit d2e0f49 into microsoft:main Dec 7, 2023
37 checks passed
Code Reviews automation moved this from Ready To Merge to Done Dec 7, 2023
@StephanTLavavej StephanTLavavej deleted the mdspan-warnings branch December 7, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mdspan C++23 mdspan
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants