Skip to content

Commit c817d65

Browse files
authored
Fix casting uint64_t to size_t for 32-bit builds (#1999)
1 parent 51dee79 commit c817d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8002,7 +8002,7 @@ inline bool ClientImpl::process_request(Stream &strm, Request &req,
80028002
error = Error::Read;
80038003
return false;
80048004
}
8005-
res.body.reserve(len);
8005+
res.body.reserve(static_cast<size_t>(len));
80068006
}
80078007
}
80088008

0 commit comments

Comments
 (0)