[serialization] bug in archive/dinkumware.hpp

Hi, while digging some boost things I noticed a minor bug in Boost.Serialization Dinkumware workarounds file archive/dinkumware.hpp. Probably it doesn't affect the functionality, but nevertheless is nice to be fixed. Workaround for outstreaming 64-bit numbers contain a bug for hex numbers. The following micropatch solves the problem: *************** *** 52,58 **** unsigned int i = 0; do{ unsigned int j = t % radix; ! d[i++] = j + ((j < 10) ? '0' : 'a'); t /= radix; } while(t > 0); --- 52,58 ---- unsigned int i = 0; do{ unsigned int j = t % radix; ! d[i++] = j + ((j < 10) ? '0' : ('a' - 10)); t /= radix; } while(t > 0); -- Alexei Alexandrov
participants (1)
-
Alexei Alexandrov