Quiet a compiler warning where (off_t + size_t) has a different sign

from (off_t).

Submitted by:	delphij
This commit is contained in:
Colin Percival 2007-01-03 20:01:44 +00:00
parent dbc258608e
commit 29d7c2fce5

View File

@ -433,7 +433,7 @@ archive_read_data(struct archive *a, void *buff, size_t s)
}
/* Compute the amount of zero padding needed. */
if (a->read_data_output_offset + s <
if (a->read_data_output_offset + (off_t)s <
a->read_data_offset) {
len = s;
} else if (a->read_data_output_offset <