mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
more typecasts to please picky compilers
This commit is contained in:
parent
5ddad4cdb3
commit
9dbd6659dc
4 changed files with 12 additions and 6 deletions
|
|
@ -137,8 +137,10 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp)
|
|||
conn->upload_fromhere += 10; /* 32bit hex + CRLF */
|
||||
}
|
||||
|
||||
nread = conn->fread(conn->upload_fromhere, 1,
|
||||
buffersize, conn->fread_in);
|
||||
/* this function returns a size_t, so we typecast to int to prevent warnings
|
||||
with picky compilers */
|
||||
nread = (int)conn->fread(conn->upload_fromhere, 1,
|
||||
buffersize, conn->fread_in);
|
||||
|
||||
if(nread == CURL_READFUNC_ABORT) {
|
||||
failf(data, "operation aborted by callback\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue