Skip to content

Commit

Permalink
Merge pull request #981 from evoskuil/master
Browse files Browse the repository at this point in the history
Fix MSVC unicode stream regression.
  • Loading branch information
evoskuil committed Jul 9, 2018
2 parents 79abfe1 + 92ed933 commit 1b5f3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unicode/unicode_streambuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ std::streambuf::int_type unicode_streambuf::overflow(
const auto written = wide_buffer_->sputn(wide_, chars);

// Handle write failure as an EOF.
if (written != static_cast<uint8_t>(chars))
if (written != static_cast<std::streamsize>(chars))
return traits_type::eof();
}

Expand Down

0 comments on commit 1b5f3df

Please sign in to comment.