Fix conversion to ‘int’ from ‘long int’ warning (#377)

Co-authored-by: Michael Tseitlin <michael.tseitlin@concertio.com>
This commit is contained in:
miketsts 2020-03-10 20:48:14 +02:00 committed by GitHub
parent c74129a1c2
commit 6e473a7c5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1921,7 +1921,7 @@ bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status,
template <typename T>
inline ssize_t write_headers(Stream &strm, const T &info,
const Headers &headers) {
auto write_len = 0;
ssize_t write_len = 0;
for (const auto &x : info.headers) {
auto len =
strm.write_format("%s: %s\r\n", x.first.c_str(), x.second.c_str());