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

The mask of shift amount in IShiftOperators<byte, int, byte> should be 7 #103900

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

skyoxZ
Copy link
Contributor

@skyoxZ skyoxZ commented Jun 24, 2024

Fix #103506

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jun 24, 2024
@skyoxZ skyoxZ marked this pull request as draft June 24, 2024 14:19
@tannergooding
Copy link
Member

This is also notably an issue with sbyte, short, and ushort. It is also, unfortunately, a breaking change and will need a bar check.

The intent had indeed been to correctly mask, which is being done in other operations but was missed for these ones.

@skyoxZ
Copy link
Contributor Author

skyoxZ commented Jun 24, 2024

OK. I will wait for a conclusion before further action.
(I set the PR as draft just because I recognized the test should be put in ByteTests.GenericMath.cs)

@tannergooding
Copy link
Member

@skyoxZ, just wanted to let you know that this is still on my radar.

I need to create a breaking change doc for this prior to getting it merged, which I should get to in the next couple days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Numerics community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The mask of shiftAmount in IShiftOperators<byte, int, byte> should be 7 instead of 31
2 participants