mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-11 08:50:31 +00:00
fix detail::pythonbuf::overflow()'s return value to return not_eof(c) (#1479)
This commit is contained in:
committed by
Wenzel Jakob
parent
3789b4f9fd
commit
2cbafb057f
@@ -34,7 +34,7 @@ private:
|
||||
*pptr() = traits_type::to_char_type(c);
|
||||
pbump(1);
|
||||
}
|
||||
return sync() ? traits_type::not_eof(c) : traits_type::eof();
|
||||
return sync() == 0 ? traits_type::not_eof(c) : traits_type::eof();
|
||||
}
|
||||
|
||||
int sync() {
|
||||
|
||||
Reference in New Issue
Block a user