Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Product fix: Avoid truncation warnings in basic_stringbuf's constructor.
sstream(57): warning C4267: 'argument': conversion from 'size_t' to 'const unsigned int', possible loss of data
  • Loading branch information
StephanTLavavej committed Dec 1, 2023
commit 9c8b76cc196865cd95b406670c76e186712687ed
2 changes: 1 addition & 1 deletion stl/inc/sstream
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public:
template <class _Alloc2>
basic_stringbuf(const basic_string<_Elem, _Traits, _Alloc2>& _Str, ios_base::openmode _Mode, const _Alloc& _Al_)
: _Al(_Al_) {
_Init(_Str.c_str(), _Str.size(), _Getstate(_Mode));
_Init(_Str.c_str(), _Convert_size<_Mysize_type>(_Str.size()), _Getstate(_Mode));
}

template <class _Alloc2>
Expand Down