💄 cleanup

This commit is contained in:
Niels Lohmann 2018-11-09 21:10:32 +01:00
parent 35829928da
commit f80efd3954
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 4 additions and 0 deletions

View file

@ -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;
} }

View file

@ -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;
} }