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:
parent
f97a7eb400
commit
40253e32fe
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user