Fix MacOS build

This commit is contained in:
Michael Klimenko 2024-01-28 00:30:23 +01:00
parent 4e067a0b6d
commit 80aab2e4ed

View file

@ -3495,7 +3495,7 @@ inline bool read_content_with_length(Stream &strm, uint64_t len,
uint64_t r = 0;
while (r < len) {
auto read_len = len - r;
auto read_len = static_cast<std::size_t>(len - r);
auto n = strm.read(buf, (std::min)(read_len, CPPHTTPLIB_RECV_BUFSIZ));
if (n <= 0) { return false; }