libarchive: Cast constants to int64_t instead of using LL suffix
The LL suffix is not portable. Use an explicit cast instead.
This commit is contained in:
parent
53da4b3028
commit
3b9eaec738
|
@ -1406,7 +1406,7 @@ zisofs_read_data(struct archive_read *a,
|
||||||
|
|
||||||
/* Allocate block pointers buffer. */
|
/* Allocate block pointers buffer. */
|
||||||
ceil = (zisofs->pz_uncompressed_size +
|
ceil = (zisofs->pz_uncompressed_size +
|
||||||
(1LL << zisofs->pz_log2_bs) - 1)
|
(((int64_t)1) << zisofs->pz_log2_bs) - 1)
|
||||||
>> zisofs->pz_log2_bs;
|
>> zisofs->pz_log2_bs;
|
||||||
xsize = (ceil + 1) * 4;
|
xsize = (ceil + 1) * 4;
|
||||||
if (zisofs->block_pointers_alloc < xsize) {
|
if (zisofs->block_pointers_alloc < xsize) {
|
||||||
|
|
|
@ -7774,7 +7774,7 @@ zisofs_extract_init(struct archive_write *a, struct zisofs_extract *zisofs,
|
||||||
|
|
||||||
/* Allocate block pointers buffer. */
|
/* Allocate block pointers buffer. */
|
||||||
ceil = (zisofs->pz_uncompressed_size +
|
ceil = (zisofs->pz_uncompressed_size +
|
||||||
(1LL << zisofs->pz_log2_bs) - 1)
|
(((int64_t)1) << zisofs->pz_log2_bs) - 1)
|
||||||
>> zisofs->pz_log2_bs;
|
>> zisofs->pz_log2_bs;
|
||||||
xsize = (ceil + 1) * 4;
|
xsize = (ceil + 1) * 4;
|
||||||
if (zisofs->block_pointers == NULL) {
|
if (zisofs->block_pointers == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue