diff options
Diffstat (limited to 'boost/property_tree/stream_translator.hpp')
-rw-r--r-- | boost/property_tree/stream_translator.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/boost/property_tree/stream_translator.hpp b/boost/property_tree/stream_translator.hpp index c7fabfa696..75b9b526fa 100644 --- a/boost/property_tree/stream_translator.hpp +++ b/boost/property_tree/stream_translator.hpp @@ -140,6 +140,7 @@ namespace boost { namespace property_tree i < (std::numeric_limits<signed char>::min)()) { s.clear(); // guarantees eof to be unset + e = 0; return; } e = (signed char)i; @@ -161,6 +162,7 @@ namespace boost { namespace property_tree // out of range? if(i > (std::numeric_limits<unsigned char>::max)()) { s.clear(); // guarantees eof to be unset + e = 0; return; } e = (unsigned char)i; |