mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-19 11:19:36 +00:00
time_t is 32 bits wide on 32-bit builds, so the millisecond counts in set_max_timeout() and the streams' duration() narrowed into it implicitly. Cast them as duration_to_sec_and_usec() already does. In the tests, six content receivers took a uint64_t length where ContentReceiver passes size_t, the Expect: 100-continue test kept 10 GiB in a size_t, and the Range checks compared ssize_t fields with unsigned literals, so they now compare whole Ranges. DoesNotReserveTheClaimedLength shifted a size_t by 41. It now claims std::string().max_size(), the most the client accepts, and still fails if the reserve cap is removed. BoringSSL counts stacks in size_t, and takes the protocol version as uint16_t and the error code as uint32_t. Walk the certificate stacks with the decltype(count) loop used elsewhere, pass the version as uint16_t, and cast the error code to what ERR_get_error() returns. MSVC takes the send() length as int, so the raw send() calls left in the tests go through detail::send_socket().