Fix narrowing in static_ostream

This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:28 -07:00
1 parent b5c69ff7c7
commit ef493d4489
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -57,7 +57,8 @@ public:
{
if(! Traits::eq_int_type(ch, Traits::eof()))
{
Traits::assign(*this->pptr(), ch);
Traits::assign(*this->pptr(),
static_cast<CharT>(ch));
flush(1);
prepare();
return ch;