diff --git a/base16_from.c b/base16_from.c index 0ae6d69..93148dc 100644 --- a/base16_from.c +++ b/base16_from.c @@ -77,6 +77,6 @@ int base16_valid(const char *src,size_t *count) ; if (count) - *count = p - src; + *count = (size_t) (p - src); return !*p; } diff --git a/base32_from.c b/base32_from.c index 35eb444..0f787e6 100644 --- a/base32_from.c +++ b/base32_from.c @@ -96,6 +96,6 @@ int base32_valid(const char *src,size_t *count) ; if (count) - *count = p - src; + *count = (size_t) (p - src); return !*p; } diff --git a/ioutil.c b/ioutil.c index 65bd944..f3b4c1f 100644 --- a/ioutil.c +++ b/ioutil.c @@ -20,7 +20,7 @@ int writeall(FH fd,const u8 *data,size_t len) continue; return -1; } - len -= wrote; + len -= (size_t) wrote; data += wrote; } return 0;