id summary reporter owner description type status milestone component version severity resolution keywords cc 12333 boost/algorithm/hex.hpp: warning C4244: 'return': conversion from 'unsigned int' to 'unsigned char' pravic Marshall Clow "… which is not surprise: {{{ template unsigned char hex_char_to_int ( T val ) { char c = static_cast ( val ); unsigned retval = 0; // <-- // ... return retval; // <-- } }}} Compiler output: {{{ 1>boost/algorithm/hex.hpp(74): warning C4244: 'return': conversion from 'unsigned int' to 'unsigned char', possible loss of data 1> boost/algorithm/hex.hpp(129): note: see reference to function template instantiation 'unsigned char boost::algorithm::detail::hex_char_to_int(T)' being compiled 1> with 1> [ 1> T=char 1> ] 1> boost/algorithm/hex.hpp(196): note: see reference to function template instantiation 'unsigned char *boost::algorithm::detail::decode_one(InputIterator &,InputIterator,OutputIterator,EndPred)' being compiled 1> with 1> [ 1> InputIterator=const char *, 1> OutputIterator=unsigned char *, 1> Iterator=const char *, 1> EndPred=bool (__cdecl *)(const char *,const char *) 1> ] }}} " Bugs closed To Be Determined algorithm Boost 1.61.0 Problem invalid