cast unsigned char to int for ostream output
authorTom Henderson <tomh@tomh.org>
Sun, 20 May 2012 15:03:46 -0700
changeset 8777 a3f5bc70cf28
parent 8776 fe3a4ad51c52
child 8778 bf37816b37ad
cast unsigned char to int for ostream output
src/lte/test/test-epc-tft-classifier.cc
--- a/src/lte/test/test-epc-tft-classifier.cc	Sat May 19 22:09:06 2012 -0700
+++ b/src/lte/test/test-epc-tft-classifier.cc	Sun May 20 15:03:46 2012 -0700
@@ -114,7 +114,7 @@
       << ", da = " << da
       << ", sp = " << sp
       << ", dp = " << dp
-      << ", tos = 0x" << std::hex << tos
+      << ", tos = 0x" << std::hex << (int) tos
       << " --> tftId = " << tftId;  
   return oss.str ();
 }