fix compiler warning: rounding, sign extension, or loss of accuracy may result

This commit is contained in:
Yang Tse 2010-12-02 18:46:13 +01:00
parent 5580fb2b9c
commit 07f60235b0
5 changed files with 59 additions and 6 deletions

View file

@ -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 {

View file

@ -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 {