From 6ba560d4ce71a0089b1535ec6667c184e0f9130d Mon Sep 17 00:00:00 2001 From: Michael Klimenko Date: Sun, 28 Jan 2024 00:35:25 +0100 Subject: [PATCH] Restore another missing cast --- examples/server/httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/httplib.h b/examples/server/httplib.h index 26488d257..49f9e1241 100644 --- a/examples/server/httplib.h +++ b/examples/server/httplib.h @@ -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(len - r); auto n = strm.read(buf, (std::min)(read_len, CPPHTTPLIB_RECV_BUFSIZ)); if (n <= 0) { return; } r += static_cast(n);