Skip to content

Commit 0398fc9

Browse files
committed
http_async_protocol_handler: use unsigned type for content length
Resolves comparison between signed and unsigned integer expressions References cpp-netlib#721
1 parent 1277fa6 commit 0398fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ struct http_async_protocol_handler {
416416
bool is_chunk_encoding;
417417
bool is_chunk_end;
418418
bool is_content_length;
419-
long long content_length;
419+
long long unsigned content_length;
420420
};
421421

422422
} // namespace impl

0 commit comments

Comments
 (0)