Browse Source

Fix casting uint64_t to size_t for 32-bit builds (#1999)

Pavel P 1 year ago
parent
commit
c817d65695
1 changed files with 1 additions and 1 deletions
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -8002,7 +8002,7 @@ inline bool ClientImpl::process_request(Stream &strm, Request &req,
           error = Error::Read;
           return false;
         }
-        res.body.reserve(len);
+        res.body.reserve(static_cast<size_t>(len));
       }
     }