aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-14 18:15:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-14 18:15:04 +0000
commitf788f988ea728f7a474a22f94d50ba2a891940cd (patch)
tree79a446dc4cd5658a7c118ee95b9b029b501fe9ef /lib
parentd04ffd258b9f48b2d65bbe6ad3daa89cb0b0aca5 (diff)
fix signed and unsigned warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index 812bbc787..ccbbf4962 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -456,7 +456,7 @@ static size_t readmoredata(char *buffer,
/* make sure that a HTTP request is never sent away chunked! */
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);
fullsize = (size_t)http->postsize;
@@ -1586,7 +1586,7 @@ CURLcode Curl_http(struct connectdata *conn)
/* store the size of the postfields */
postsize = 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) {
/* We only set Content-Length and allow a custom Content-Length if