Skip to content

Don't offer to remove necessary native integer casts#48107

Merged
2 commits merged intodotnet:masterfrom
davidwengier:FixNativeCasts
Sep 28, 2020
Merged

Don't offer to remove necessary native integer casts#48107
2 commits merged intodotnet:masterfrom
davidwengier:FixNativeCasts

Conversation

@davidwengier
Copy link
Member

Fixes #47800

@davidwengier davidwengier requested a review from a team as a code owner September 28, 2020 02:53
parentCastType.IsNativeIntegerType &&
parentCastType.SpecialType == (castType.SpecialType == SpecialType.System_IntPtr
? SpecialType.System_UIntPtr
: SpecialType.System_IntPtr))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract the RHS to a local.

@ghost
Copy link

ghost commented Sep 28, 2020

Hello @davidwengier!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approval

@ghost ghost merged commit 356bce2 into dotnet:master Sep 28, 2020
@ghost ghost added this to the Next milestone Sep 28, 2020
@jasonmalinowski
Copy link
Member

@davidwengier Thanks for fixing this one!

@davidwengier davidwengier deleted the FixNativeCasts branch October 1, 2020 07:36
@Cosifne Cosifne modified the milestones: Next, 16.9.P1 Oct 12, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conversion from IntPtr to nint to nuint incorrectly reported as redundant.

4 participants