Quiet a compiler warning where (off_t + size_t) has a different sign
from (off_t). Submitted by: delphij
This commit is contained in:
parent
dbc258608e
commit
29d7c2fce5
@ -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 <
|
||||
|
Loading…
x
Reference in New Issue
Block a user