Fix SCons 1.2.0 build failure
[senf.git] / Utils / hexdump.cc
index 9f08553..e332a6f 100644 (file)
@@ -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"