Skip to content
Snippets Groups Projects
Commit 40253e32 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent f97a7eb4
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment