Hex dump in hex -- convert char to int before handing it over to boost::format.

This commit is contained in:
Moritz Bunkus 2008-09-30 20:43:57 +00:00
parent 3bbb8099e2
commit 9b61b6e498

View File

@ -1218,7 +1218,7 @@ mxhexdump(int level,
else
output[j] = '.';
j++;
mxinfo(boost::format("%|1$02x| ") % buffer[i]);
mxinfo(boost::format("%|1$02x| ") % (int)buffer[i]);
}
while ((i % 16) != 0) {
if ((i % 8) == 0)