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

Feat trigger x1010 when InlineData is negative int and parameter is uint #189

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

Conversation

NormanFrieman
Copy link

When pass negative int in inlinedata and the parameter of test is uint, the test will fail in runtime

@NormanFrieman
Copy link
Author

@dotnet-policy-service agree

@bradwilson
Copy link
Member

Sorry for the delay, I thought I had already left a comment here but I must not have submitted it. ☹️

The fix provided here is very focused on specifically negative ints and uints. An ideal fix would be generalized to support all integral types, ensuring compatibility.

@NormanFrieman
Copy link
Author

@bradwilson I've improved the test I created that tests negative int to uint conversion scenarios. Are you suggesting that I include a fix for this issue as well? issue 2983

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants