mirror of
https://github.com/curl/curl.git
synced 2026-08-26 07:23:31 +03:00
fix compiler warning: rounding, sign extension, or loss of accuracy may result
This commit is contained in:
parent
5580fb2b9c
commit
07f60235b0
5 changed files with 59 additions and 6 deletions
|
|
@ -798,7 +798,7 @@ static int get_request(curl_socket_t sock, struct httprequest *req)
|
|||
while(!done_processing && (req->offset < REQBUFSIZ-1)) {
|
||||
if(pipereq_length && pipereq) {
|
||||
memmove(reqbuf, pipereq, pipereq_length);
|
||||
got = pipereq_length;
|
||||
got = curlx_uztosz(pipereq_length);
|
||||
pipereq_length = 0;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -762,7 +762,7 @@ static int get_request(curl_socket_t sock, struct httprequest *req)
|
|||
while(!done_processing && (req->offset < REQBUFSIZ-1)) {
|
||||
if(pipereq_length && pipereq) {
|
||||
memmove(reqbuf, pipereq, pipereq_length);
|
||||
got = pipereq_length;
|
||||
got = curlx_uztosz(pipereq_length);
|
||||
pipereq_length = 0;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue