aboutsummaryrefslogtreecommitdiff
path: root/lib/pingpong.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-08-02 18:53:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-08-02 18:53:34 +0200
commit40253e32feab237fa89cbd7be7367ef1f8990148 (patch)
tree3a9a11250488df8c0d0e93c505f21704856d66a5 /lib/pingpong.c
parentf97a7eb400f014011c036230787926171b88527a (diff)
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.
Diffstat (limited to 'lib/pingpong.c')
-rw-r--r--lib/pingpong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c
index 7b2a66477..876a6a215 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 */