Commit 2d457ab4 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed bad checksum formatting in unit tests leading to test failures for checksums < 0x10000000

parent d3681850
......@@ -590,7 +590,7 @@ std::string getAdler32String(const uint8_t *buf, const uint32_t len)
{
const uint32_t checksum = adler32(0L, Z_NULL, 0);
std::stringstream ret;
ret << std::showbase << std::hex << std::setw(8) << std::setfill('0') << std::uppercase
ret << "0X" << std::noshowbase << std::hex << std::setw(8) << std::setfill('0') << std::uppercase
<< adler32(checksum, (const Bytef*)buf, len);
return ret.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