Commit 88b74094 authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Fixed the str() method of checksum to display the correct value

parent f5c3c151
......@@ -75,11 +75,8 @@ std::string cta::Checksum::str() const {
std::ostringstream oss;
if(0 < arraySize) {
const auto bytes = m_byteArray.getBytes();
oss << "0x";
for(uint32_t i = 0; i < arraySize; i++) {
oss << std::hex << bytes[i];
}
uint32_t checkSumInt32 = *((uint32_t *)(m_byteArray.getBytes()));
oss << "0x" << std::hex << checkSumInt32;
}
return oss.str();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment