Skip to content

Cherry-Pick #7567: [NFC] Address compiler warnings: C4146 - Another round of use two's complement instead of negation#8237

Draft
alsepkow wants to merge 1 commit intomicrosoft:release-1.8.2505from
alsepkow:user/alsepkow/cherry-pick-7567-to-1.8.2505
Draft

Cherry-Pick #7567: [NFC] Address compiler warnings: C4146 - Another round of use two's complement instead of negation#8237
alsepkow wants to merge 1 commit intomicrosoft:release-1.8.2505from
alsepkow:user/alsepkow/cherry-pick-7567-to-1.8.2505

Conversation

@alsepkow
Copy link
Contributor

@alsepkow alsepkow commented Mar 7, 2026

Cherry-pick of PR #7567 into release-1.8.2505.

Original PR: #7567
Original Commit: 3e01e8b

Assisted by GitHub Copilot.

…omplement instead of negation (microsoft#7567)

Addresses microsoft#7565

A few more instances where we can take advantage of -N being equivalent
to (~N + 1)
@alsepkow alsepkow changed the title Cherry-Pick: [NFC] Address compiler warnings: C4146 - Another round of use two's complement instead of negation (#7567) Cherry-Pick #7567: [NFC] Address compiler warnings: C4146 - Another round of use two's complement instead of negation Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant