diff options
author | Yang Tse <yangsita@gmail.com> | 2010-12-02 18:46:13 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-12-02 18:46:13 +0100 |
commit | 07f60235b06a172a98082d11f065c13f7ecb1ec0 (patch) | |
tree | 2a50907dac005783e8b6701b7e476fd679575586 /tests | |
parent | 5580fb2b9cb392f909d39b04292d75b3611197f0 (diff) |
fix compiler warning: rounding, sign extension, or loss of accuracy may result
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server/rtspd.c | 2 | ||||
-rw-r--r-- | tests/server/sws.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/rtspd.c b/tests/server/rtspd.c index f751f1153..5c06729ea 100644 --- a/tests/server/rtspd.c +++ b/tests/server/rtspd.c @@ -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 { diff --git a/tests/server/sws.c b/tests/server/sws.c index 65a61c2ce..fb54c209b 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -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 { |