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

<sstream>: Avoid truncation warnings in basic_stringbuf's constructor #4228

Merged
merged 1 commit into from Dec 7, 2023

Conversation

StephanTLavavej
Copy link
Member

Test coverage will be provided by the upcoming libcxx update, which has allocators with custom size types. #4219 fixed outright compiler errors, but there's still a compiler warning:

sstream(57): warning C4267: 'argument': conversion from 'size_t' to 'const unsigned int', possible loss of data

_Convert_size is our machinery for dealing with this.

sstream(57): warning C4267: 'argument': conversion from 'size_t' to 'const unsigned int', possible loss of data
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Dec 2, 2023
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner December 2, 2023 01:04
@github-actions github-actions bot added this to Initial Review in Code Reviews Dec 2, 2023
@StephanTLavavej StephanTLavavej moved this from Initial Review to Final Review in Code Reviews Dec 2, 2023
@CaseyCarter CaseyCarter removed their assignment Dec 6, 2023
@CaseyCarter CaseyCarter moved this from Final Review to Ready To Merge in Code Reviews Dec 6, 2023
@StephanTLavavej StephanTLavavej self-assigned this Dec 7, 2023
@StephanTLavavej
Copy link
Member Author

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 4017243 into microsoft:main Dec 7, 2023
37 checks passed
Code Reviews automation moved this from Ready To Merge to Done Dec 7, 2023
@StephanTLavavej StephanTLavavej deleted the sstream-warnings branch December 7, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants