mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fixed compiler error for old compiler.
This commit is contained in:
parent
536e7eb7f2
commit
953600c177
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue