mirror of
https://github.com/boostorg/iostreams.git
synced 2026-02-27 17:12:17 +00:00
fixed confudion between int_type and char_type in read() for non-multichar filters
[SVN r27443]
This commit is contained in:
@@ -265,10 +265,10 @@ struct filter_impl<any_tag> {
|
||||
typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type) traits_type;
|
||||
std::streamsize result;
|
||||
for (result = 0; result < n; ++result) {
|
||||
char_type c = t.get(src);
|
||||
typename io_int<T>::type c = t.get(src);
|
||||
if (traits_type::eq_int_type(c, traits_type::eof()))
|
||||
break;
|
||||
s[result] = traits_type::to_int_type(c);
|
||||
s[result] = traits_type::to_char_type(c);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user