Skip to content

Commit 54915ac

Browse files
authored
Merge pull request #893 from boostorg/pr/fix-sha1-fix
2 parents c539c92 + f8e5e35 commit 54915ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/compute/detail/sha1.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class sha1 {
4848
std::ostringstream buf;
4949
#if BOOST_VERSION >= 108600
5050
for(int i = 0; i < 20; ++i)
51-
buf << std::hex << std::setfill('0') << std::setw(2) << digest[i];
51+
buf << std::hex << std::setfill('0') << std::setw(2) << +digest[i];
5252
#else
5353
for(int i = 0; i < 5; ++i)
5454
buf << std::hex << std::setfill('0') << std::setw(8) << digest[i];

0 commit comments

Comments
 (0)