Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit c70f774

Browse files
committed
Clarified and commented expression.
1 parent 9586a81 commit c70f774

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boost/network/protocol/http/client/connection/async_normal.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ struct chunk_encoding_parser {
5656
ss << std::hex << range;
5757
size_t size;
5858
ss >> size;
59-
chunk_size = (chunk_size << (range.size() * 4)) + size;
59+
// New digits are appended as LSBs
60+
chunk_size = (chunk_size << (range.size() * 4)) | size;
6061
}
6162

6263
boost::iterator_range<

0 commit comments

Comments
 (0)