💄 cleanup

parent 35829928
...@@ -82,7 +82,9 @@ class input_stream_adapter : public input_adapter_protocol ...@@ -82,7 +82,9 @@ class input_stream_adapter : public input_adapter_protocol
auto res = sb.sbumpc(); auto res = sb.sbumpc();
// set eof manually, as we don't use the istream interface. // set eof manually, as we don't use the istream interface.
if (res == EOF) if (res == EOF)
{
is.clear(is.rdstate() | std::ios::eofbit); is.clear(is.rdstate() | std::ios::eofbit);
}
return res; return res;
} }
......
...@@ -2131,7 +2131,9 @@ class input_stream_adapter : public input_adapter_protocol ...@@ -2131,7 +2131,9 @@ class input_stream_adapter : public input_adapter_protocol
auto res = sb.sbumpc(); auto res = sb.sbumpc();
// set eof manually, as we don't use the istream interface. // set eof manually, as we don't use the istream interface.
if (res == EOF) if (res == EOF)
{
is.clear(is.rdstate() | std::ios::eofbit); is.clear(is.rdstate() | std::ios::eofbit);
}
return res; return res;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment