forked from boostorg/beast
Fix narrowing in ostream
This commit is contained in:
1 parent
ef493d4489
commit
31b59f0b0f
2 files changed
+5
-2
No files matched your search
@@ -105,7 +105,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;
|
||||
@@ -185,7 +186,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;
|
||||
|
||||
Reference in new issue
Block a user