From 2b7173c4cd802b26ef707c60315887c104c023fd Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Thu, 23 Dec 2010 19:18:47 -0500 Subject: [PATCH] lib: fixed stream output bug in HexDumpParser Outputting a uint8_t results in a char print instead of a numeric value. --- src/parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.cc b/src/parser.cc index 7768391f..2ad80aaf 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -54,7 +54,7 @@ void HexDumpParser::ParseRecord(const Barry::DBData &data, { m_os << "Raw record dump for record: 0x" << hex << data.GetUniqueId() - << ", type: 0x" << hex << data.GetRecType() + << ", type: 0x" << hex << (unsigned int) data.GetRecType() << ", offset: 0x" << hex << data.GetOffset() << endl; m_os << data.GetData() << std::endl; -- 2.11.4.GIT