1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 03:55:03 -05:00

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.
This commit is contained in:
Daniel Stenberg 2010-08-02 18:53:03 +02:00
parent f97a7eb400
commit 40253e32fe

View File

@ -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 */