Restore another missing cast
This commit is contained in:
parent
80aab2e4ed
commit
6ba560d4ce
1 changed files with 1 additions and 1 deletions
|
@ -3514,7 +3514,7 @@ inline void skip_content_with_length(Stream &strm, uint64_t len) {
|
||||||
char buf[CPPHTTPLIB_RECV_BUFSIZ];
|
char buf[CPPHTTPLIB_RECV_BUFSIZ];
|
||||||
uint64_t r = 0;
|
uint64_t r = 0;
|
||||||
while (r < len) {
|
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));
|
auto n = strm.read(buf, (std::min)(read_len, CPPHTTPLIB_RECV_BUFSIZ));
|
||||||
if (n <= 0) { return; }
|
if (n <= 0) { return; }
|
||||||
r += static_cast<uint64_t>(n);
|
r += static_cast<uint64_t>(n);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue