From 9c8b76cc196865cd95b406670c76e186712687ed Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Wed, 29 Nov 2023 20:40:40 -0800 Subject: [PATCH] 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 --- stl/inc/sstream | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/inc/sstream b/stl/inc/sstream index c78711c54a..59f0e6b6c0 100644 --- a/stl/inc/sstream +++ b/stl/inc/sstream @@ -54,7 +54,7 @@ public: template 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