X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fhexdump.cc;h=e332a6f43abcd96a579baf301b1525058ad6091a;hb=af1d0936ba912bb301ac6604965df5b28d79c63e;hp=9f0855336cc2e86dcbc5c6f4456a6def1b60cd11;hpb=0734de7b0f8616d5f2454289d1c686ba1d2c625b;p=senf.git diff --git a/Utils/hexdump.cc b/Utils/hexdump.cc index 9f08553..e332a6f 100644 --- a/Utils/hexdump.cc +++ b/Utils/hexdump.cc @@ -32,8 +32,9 @@ //#include "hexdump.mpp" #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// +#ifndef DOXYGEN -prefix_ void senf::detail::HexDumper::operator()(unsigned ch) +prefix_ void senf::detail::HexDumper::operator()(unsigned char ch) { if ((offset_ % block_size_) == 0) { if (!ascii_.empty()) { @@ -48,7 +49,7 @@ prefix_ void senf::detail::HexDumper::operator()(unsigned ch) ascii_ += ' '; } os_ << ' ' << std::hex << std::setw(2) << std::setfill('0') - << ch; + << unsigned(ch); ascii_ += (ch >= ' ' && ch < 126) ? ch : '.'; ++ offset_; } @@ -65,6 +66,7 @@ prefix_ senf::detail::HexDumper::~HexDumper() } } +#endif ///////////////////////////////cc.e//////////////////////////////////////// #undef prefix_ //#include "hexdump.mpp"