aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-12-02 18:46:13 +0100
committerYang Tse <yangsita@gmail.com>2010-12-02 18:46:13 +0100
commit07f60235b06a172a98082d11f065c13f7ecb1ec0 (patch)
tree2a50907dac005783e8b6701b7e476fd679575586 /tests
parent5580fb2b9cb392f909d39b04292d75b3611197f0 (diff)
fix compiler warning: rounding, sign extension, or loss of accuracy may result
Diffstat (limited to 'tests')
-rw-r--r--tests/server/rtspd.c2
-rw-r--r--tests/server/sws.c2
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 {