mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
Fixed compiler error for old compiler.
This commit is contained in:
parent
536e7eb7f2
commit
953600c177
@ -3164,7 +3164,7 @@ get_range_offset_and_length(const Request &req, size_t content_length,
|
||||
auto slen = static_cast<ssize_t>(content_length);
|
||||
|
||||
if (r.first == -1) {
|
||||
r.first = std::max(static_cast<ssize_t>(0), slen - r.second);
|
||||
r.first = (std::max)(static_cast<ssize_t>(0), slen - r.second);
|
||||
r.second = slen - 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user