fix types conversion
This commit is contained in:
parent
453fe2783e
commit
1f2fc4b132
@ -296,7 +296,7 @@ UUEncodeStream (FILE *outfile, FILE *infile, int encoding, long linperfile, crc3
|
||||
*/
|
||||
if (count > 0 && itemp[count-1] == '\n') {
|
||||
itemp[--count] = '\0';
|
||||
if (fwrite (itemp, 1, count, outfile) != count ||
|
||||
if (fwrite (itemp, 1, count, outfile) != (unsigned)count ||
|
||||
fwrite ((char *) eolstring, 1,
|
||||
strlen((char *) eolstring), outfile) != strlen ((char *) eolstring)) {
|
||||
return UURET_IOERR;
|
||||
|
@ -1111,7 +1111,7 @@ UUDecodePart (FILE *datain, FILE *dataout, int *state,
|
||||
{
|
||||
size_t size = atol(ptr + 6);
|
||||
if (size != yepartsize && yefilesize != -1) {
|
||||
if (size != yefilesize)
|
||||
if (size != (size_t)yefilesize)
|
||||
UUMessage (uunconc_id, __LINE__, UUMSG_WARNING,
|
||||
uustring (S_PSIZE_MISMATCH), progress.curfile,
|
||||
progress.partno, yepartsize, size);
|
||||
|
Reference in New Issue
Block a user