Skip to content

Commit fa76515

Browse files
ekigwanadeanberris
authored andcommitted
content_length type was std::size_t and was changed to long long in (cpp-netlib#753)
commit f8ff77d. It is also initialized to -1 in parse_headers_real(...). Signed-off-by: Edward Kigwana <[email protected]>
1 parent f872859 commit fa76515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ struct http_async_protocol_handler {
348348
}
349349
return false;
350350
}
351-
351+
352352
inline bool parse_content_length_complete() const {
353-
return this->partial_parsed.length() >= this-> content_length;
353+
return static_cast<std::ptrdiff_t>(this->partial_parsed.length()) >= this->content_length;
354354
}
355355

356356
bool parse_chunk_encoding_complete() const {

0 commit comments

Comments
 (0)