aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-09-03 10:18:58 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-09-03 10:18:58 +0100
commit045b076ae8362006f6977a80e6a5e3ef0eb903eb (patch)
tree7533b5f52cbd99ccac579e6ba77e669aaab8369c /lib
parent3baf36edf6ed1d7c74d68846d79f87334b573aea (diff)
mime: fix some implicit curl_off_t --> size_t conversion warnings.
Diffstat (limited to 'lib')
-rw-r--r--lib/mime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mime.c b/lib/mime.c
index 759ade085..11d387d62 100644
--- a/lib/mime.c
+++ b/lib/mime.c
@@ -282,7 +282,7 @@ static size_t mime_mem_read(char *buffer, size_t size, size_t nitems,
void *instream)
{
struct Curl_mimepart *part = (struct Curl_mimepart *) instream;
- size_t sz = part->datasize - part->state.offset;
+ size_t sz = (size_t) part->datasize - part->state.offset;
(void) size; /* Always 1.*/
@@ -312,7 +312,7 @@ static int mime_mem_seek(void *instream, curl_off_t offset, int whence)
if(offset < 0 || offset > part->datasize)
return CURL_SEEKFUNC_FAIL;
- part->state.offset = offset;
+ part->state.offset = (size_t) offset;
return CURL_SEEKFUNC_OK;
}