From 40253e32feab237fa89cbd7be7367ef1f8990148 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 2 Aug 2010 18:53:03 +0200 Subject: 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. --- lib/pingpong.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 */ -- cgit v1.2.3