mirror of
https://github.com/boostorg/compute.git
synced 2026-07-21 13:13:36 +00:00
Output digest[i] as an integer, rather than a character, in sha1.hpp
This commit is contained in:
@@ -48,7 +48,7 @@ class sha1 {
|
||||
std::ostringstream buf;
|
||||
#if BOOST_VERSION >= 108600
|
||||
for(int i = 0; i < 20; ++i)
|
||||
buf << std::hex << std::setfill('0') << std::setw(2) << digest[i];
|
||||
buf << std::hex << std::setfill('0') << std::setw(2) << +digest[i];
|
||||
#else
|
||||
for(int i = 0; i < 5; ++i)
|
||||
buf << std::hex << std::setfill('0') << std::setw(8) << digest[i];
|
||||
|
||||
Reference in New Issue
Block a user