diff options
Diffstat (limited to 'boost/algorithm/hex.hpp')
-rw-r--r-- | boost/algorithm/hex.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/algorithm/hex.hpp b/boost/algorithm/hex.hpp index 739e89f2f0..b8335843a8 100644 --- a/boost/algorithm/hex.hpp +++ b/boost/algorithm/hex.hpp @@ -73,7 +73,7 @@ namespace detail { else if ( c >= 'A' && c <= 'F' ) retval = c - 'A' + 10; else if ( c >= 'a' && c <= 'f' ) retval = c - 'a' + 10; else BOOST_THROW_EXCEPTION (non_hex_input() << bad_char (c)); - return retval; + return static_cast<char>(retval); } // My own iterator_traits class. |