Skip to content

Commit

Permalink
<sstream>: Avoid truncation warnings in basic_stringbuf's constru…
Browse files Browse the repository at this point in the history
…ctor (#4228)
  • Loading branch information
StephanTLavavej authored Dec 7, 2023
1 parent d2e0f49 commit 4017243
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 4017243

Please sign in to comment.