mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 05:17:26 +02:00
Fix narrowing in ostream
This commit is contained in:
@ -3,6 +3,7 @@ Version 65:
|
|||||||
* Enable narrowing warning on msvc cmake
|
* Enable narrowing warning on msvc cmake
|
||||||
* Fix integer types in deflate_stream::bi_reverse
|
* Fix integer types in deflate_stream::bi_reverse
|
||||||
* Fix narrowing in static_ostream
|
* Fix narrowing in static_ostream
|
||||||
|
* Fix narrowing in ostream
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -105,7 +105,8 @@ public:
|
|||||||
{
|
{
|
||||||
if(! Traits::eq_int_type(ch, Traits::eof()))
|
if(! Traits::eq_int_type(ch, Traits::eof()))
|
||||||
{
|
{
|
||||||
Traits::assign(*this->pptr(), ch);
|
Traits::assign(*this->pptr(),
|
||||||
|
static_cast<CharT>(ch));
|
||||||
flush(1);
|
flush(1);
|
||||||
prepare();
|
prepare();
|
||||||
return ch;
|
return ch;
|
||||||
@ -185,7 +186,8 @@ public:
|
|||||||
{
|
{
|
||||||
if(! Traits::eq_int_type(ch, Traits::eof()))
|
if(! Traits::eq_int_type(ch, Traits::eof()))
|
||||||
{
|
{
|
||||||
Traits::assign(*this->pptr(), ch);
|
Traits::assign(*this->pptr(),
|
||||||
|
static_cast<CharT>(ch));
|
||||||
flush(1);
|
flush(1);
|
||||||
prepare();
|
prepare();
|
||||||
return ch;
|
return ch;
|
||||||
|
Reference in New Issue
Block a user