some more explicitness

This commit is contained in:
cathugger 2018-02-23 00:11:20 +00:00
parent 5e97518634
commit 30d26a3e67
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;