mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 15:50:48 -04:00
fix signed and unsigned warnings
This commit is contained in:
parent
d04ffd258b
commit
f788f988ea
@ -456,7 +456,7 @@ static size_t readmoredata(char *buffer,
|
|||||||
/* make sure that a HTTP request is never sent away chunked! */
|
/* make sure that a HTTP request is never sent away chunked! */
|
||||||
conn->bits.forbidchunk= (http->sending == HTTPSEND_REQUEST)?TRUE:FALSE;
|
conn->bits.forbidchunk= (http->sending == HTTPSEND_REQUEST)?TRUE:FALSE;
|
||||||
|
|
||||||
if(http->postsize <= fullsize) {
|
if(http->postsize <= (curl_off_t)fullsize) {
|
||||||
memcpy(buffer, http->postdata, (size_t)http->postsize);
|
memcpy(buffer, http->postdata, (size_t)http->postsize);
|
||||||
fullsize = (size_t)http->postsize;
|
fullsize = (size_t)http->postsize;
|
||||||
|
|
||||||
@ -1586,7 +1586,7 @@ CURLcode Curl_http(struct connectdata *conn)
|
|||||||
/* store the size of the postfields */
|
/* store the size of the postfields */
|
||||||
postsize = data->set.postfieldsize?
|
postsize = data->set.postfieldsize?
|
||||||
data->set.postfieldsize:
|
data->set.postfieldsize:
|
||||||
(data->set.postfields?strlen(data->set.postfields):0);
|
(data->set.postfields?(curl_off_t)strlen(data->set.postfields):0);
|
||||||
|
|
||||||
if(!conn->bits.upload_chunky) {
|
if(!conn->bits.upload_chunky) {
|
||||||
/* We only set Content-Length and allow a custom Content-Length if
|
/* We only set Content-Length and allow a custom Content-Length if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user