Restore another missing cast

This commit is contained in:
Michael Klimenko 2024-01-28 00:35:25 +01:00
parent 80aab2e4ed
commit 6ba560d4ce

View file

@ -3514,7 +3514,7 @@ inline void skip_content_with_length(Stream &strm, uint64_t len) {
char buf[CPPHTTPLIB_RECV_BUFSIZ];
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; }
r += static_cast<uint64_t>(n);