Explorar o código

Fixed compiler error for old compiler.

yhirose %!s(int64=5) %!d(string=hai) anos
pai
achega
953600c177
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -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;
   }