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

Fix implicitly narrowing conversion in textBuffer #9972

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

skyline75489
Copy link
Collaborator

@skyline75489 skyline75489 commented Apr 28, 2021

Explicitly using SHORT instead of auto to prevent int -> short narrowing.

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

Huh. Kinda surprised that this all works, implicitly converting from a bool to either an int or short like this.

The code formatting isn't on you, so I don't think you should feel compelled to fix that, @DHowett will probably be around in the morning to fix that

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

whoops forgot to ✔️

@DHowett
Copy link
Member

DHowett commented Apr 28, 2021

Does this fix a compiler warning or runtime bug or something?

@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Apr 28, 2021
@ghost
Copy link

ghost commented Apr 28, 2021

Hello @DHowett!

Because this pull request has the AutoMerge 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.

@DHowett DHowett merged commit c5fcbed into microsoft:main Apr 28, 2021
@DHowett
Copy link
Member

DHowett commented Apr 28, 2021

Mike explained it to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Marked for automatic merge by the bot when requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants