From: Daniel Stenberg Date: Mon, 2 Aug 2010 16:53:03 +0000 (+0200) Subject: build: add typecast to avoid warning X-Git-Tag: curl-7_21_1~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40253e32feab237fa89cbd7be7367ef1f8990148;p=thirdparty%2Fcurl.git build: add typecast to avoid warning There is an implicit conversion from "unsigned long" to "long"; rounding, sign extension, or loss of accuracy may result. --- diff --git a/lib/pingpong.c b/lib/pingpong.c index 7b2a664778..876a6a2157 100644 --- a/lib/pingpong.c +++ b/lib/pingpong.c @@ -322,7 +322,7 @@ CURLcode Curl_pp_readresp(curl_socket_t sockfd, */ DEBUGASSERT((ptr+pp->cache_size) <= (buf+BUFSIZE+1)); memcpy(ptr, pp->cache, pp->cache_size); - gotbytes = pp->cache_size; + gotbytes = (ssize_t)pp->cache_size; free(pp->cache); /* free the cache */ pp->cache = NULL; /* clear the pointer */ pp->cache_size = 0; /* zero the size just in case */