Skip to content

Conversation

@AZero13
Copy link
Contributor

@AZero13 AZero13 commented Dec 27, 2025

wclog is not checked, it seems to be forgotten about when _Addstd is called.

wclog is not checked, it seems to be forgotten about when _Addstd is called.
@AZero13 AZero13 requested a review from a team as a code owner December 27, 2025 04:00
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Dec 27, 2025
void __CLRCALL_PURE_OR_CDECL ios_base::_Addstd(ios_base* _This) { // add standard stream to destructor list
_BEGIN_LOCK(_LOCK_STREAM)
for (_This->_Stdstr = 1; _This->_Stdstr < _Nstdstr; ++_This->_Stdstr) {
for (_This->_Stdstr = 1; _This->_Stdstr <= _Nstdstr; ++_This->_Stdstr) {
Copy link
Contributor

@cpplearner cpplearner Dec 27, 2025

Choose a reason for hiding this comment

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

This change seems unnecessary and even misleading. _This->_Stdstr should never be larger than _Nstdstr after the loop, but with <= the loop structure suggests that it could be.

@AZero13 AZero13 closed this Dec 28, 2025
@github-project-automation github-project-automation bot moved this from Initial Review to Done in STL Code Reviews Dec 28, 2025
@AZero13 AZero13 deleted the lastbyte branch December 28, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants